We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d592891 commit 09ec9a0Copy full SHA for 09ec9a0
test/Str/StrValueTest.php
@@ -12,16 +12,22 @@
12
use PHPUnit\Framework\TestCase;
13
use Toolkit\Stdlib\Str\StrValue;
14
15
+/**
16
+ * class StrValueTest
17
+ *
18
+ * @author inhere
19
+ * @date 2022/12/27
20
+ */
21
class StrValueTest extends TestCase
22
{
23
public function testStrObjectBasic(): void
24
25
$s = StrValue::new('abc ');
26
27
+ self::assertFalse($s->hasSuffix('c'));
28
self::assertEquals(4, $s->length());
29
self::assertEquals('abc', $s->trimmed()->value());
30
self::assertEquals('abc', $s->trim()->toString());
- self::assertFalse($s->hasSuffix('c'));
31
32
$s->trim();
33
0 commit comments