Total Complexity | 5 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
14 | class StrTest extends TestCase |
||
15 | { |
||
16 | public function testStartsWith() |
||
17 | { |
||
18 | $this->assertTrue(Str::startsWith('Hello World', ['foo', 'Hello'])); |
||
19 | $this->assertTrue(Str::startsWith('Hello World', 'Hello')); |
||
20 | $this->assertFalse(Str::startsWith('Hello World', 'foo')); |
||
21 | } |
||
22 | |||
23 | public function testEndsWith() |
||
28 | } |
||
29 | |||
30 | public function testUpper() |
||
31 | { |
||
32 | $this->assertSame('HELLOWORLD', Str::upper('HelloWorld')); |
||
33 | } |
||
34 | |||
35 | public function testLower() |
||
38 | } |
||
39 | |||
40 | public function testSnake() |
||
45 | } |
||
46 | } |
||
47 |