Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 09ec9a0

Browse files
committed
ci: fix unit test error
1 parent d592891 commit 09ec9a0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎test/Str/StrValueTest.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@
1212
use PHPUnit\Framework\TestCase;
1313
use Toolkit\Stdlib\Str\StrValue;
1414

15+
/**
16+
* class StrValueTest
17+
*
18+
* @author inhere
19+
* @date 2022年12月27日
20+
*/
1521
class StrValueTest extends TestCase
1622
{
1723
public function testStrObjectBasic(): void
1824
{
1925
$s = StrValue::new('abc ');
2026

27+
self::assertFalse($s->hasSuffix('c'));
2128
self::assertEquals(4, $s->length());
2229
self::assertEquals('abc', $s->trimmed()->value());
2330
self::assertEquals('abc', $s->trim()->toString());
24-
self::assertFalse($s->hasSuffix('c'));
2531

2632
$s->trim();
2733

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /