File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 22
33namespace Toolkit \StdlibTest ;
44
5- use Toolkit \Stdlib \Util \BasePhpTestCase ;
5+ use Toolkit \Stdlib \Helper \BasePhpTestCase ;
66
77/**
88 * class BaseLibTestCase
Original file line number Diff line number Diff line change 1010namespace Toolkit \StdlibTest \Str ;
1111
1212use PHPUnit \Framework \TestCase ;
13- use Toolkit \Stdlib \Str \StrObject ;
13+ use Toolkit \Stdlib \Str \StrValue ;
1414
15- class StrObjectTest extends TestCase
15+ class StrValueTest extends TestCase
1616{
1717 public function testStrObjectBasic (): void
1818 {
19- $ s = StrObject ::new ('abc ' );
19+ $ s = StrValue ::new ('abc ' );
2020
2121 self ::assertEquals (4 , $ s ->length ());
2222 self ::assertEquals ('abc ' , $ s ->trimmed ());
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ public function testOptionalBasic(): void
2121 $ val = $ o ->filter (static function ($ val ) {
2222 return $ val > 25 ;
2323 })->orElse (25 );
24+
2425 $ this ->assertEquals (25 , $ val );
2526 }
2627
@@ -33,7 +34,7 @@ public function testOptional_or(): void
3334 });
3435
3536 $ val = $ o ->or (function () {
36- return 23 ;
37+ return Optional:: of ( 23 ) ;
3738 })->get ();
3839
3940 $ this ->assertEquals (23 , $ val );
You can’t perform that action at this time.
0 commit comments