mirror of
https://github.com/danielstjules/Stringy.git
synced 2025-08-07 05:46:42 +02:00
Add test for StaticStringy invocation
This commit is contained in:
@@ -20,6 +20,12 @@ class StaticStringyTestCase extends PHPUnit_Framework_TestCase
|
||||
$this->assertEquals('', (string) $result);
|
||||
}
|
||||
|
||||
public function testInvocation()
|
||||
{
|
||||
$result = S::toLowerCase('FOOBAR');
|
||||
$this->assertEquals('foobar', (string) $result);
|
||||
}
|
||||
|
||||
public function testPartialArgsInvocation()
|
||||
{
|
||||
$result = S::slice('foobar', 0, 3);
|
||||
|
Reference in New Issue
Block a user