| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | class CheckTest extends TestCase |
||
| 20 | { |
||
| 21 | /** |
||
| 22 | * Tests Check::isAbsolutePath |
||
| 23 | */ |
||
| 24 | public function testIsAbsolutePathTrue() |
||
| 25 | { |
||
| 26 | $this->assertTrue(Check::isAbsolutePath('/foo/bar')); |
||
| 27 | } |
||
| 28 | |||
| 29 | /** |
||
| 30 | * Tests Check::isAbsolutePath |
||
| 31 | */ |
||
| 32 | public function testIsRelativePathNotBeingAbsolute() |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * Tests Check::isAbsolutePath |
||
| 39 | */ |
||
| 40 | public function testIsAbsolutePathStream() |
||
| 41 | { |
||
| 42 | $this->assertTrue(Check::isAbsolutePath('php://foo/bar')); |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Tests Check::isAbsolutePathWindows |
||
| 47 | * |
||
| 48 | * @dataProvider providerWindowsPaths |
||
| 49 | * |
||
| 50 | * @param string $path |
||
| 51 | * @param boolean $expected |
||
| 52 | */ |
||
| 53 | public function testIsAbsolutePathWindows($path, $expected) |
||
| 54 | { |
||
| 55 | $this->assertEquals($expected, Check::isAbsolutePath($path)); |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Data provider testIsAbsolutePathWindows. |
||
| 60 | * |
||
| 61 | * @return array |
||
| 62 | */ |
||
| 63 | public function providerWindowsPaths() |
||
| 69 | ]; |
||
| 70 | } |
||
| 71 | } |
||
| 72 |