Skip to content

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

+7-1
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)