| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | public function test() |
||
| 11 | { |
||
| 12 | $filesystem = $this->app->get(Filesystem::class); |
||
| 13 | |||
| 14 | $this->assertSame($filesystem->getPath(), getcwd()); |
||
| 15 | $this->assertSame($filesystem->getPath(''), getcwd()); |
||
| 16 | |||
| 17 | $this->assertSame($filesystem->getPath('config'), getcwd().'/config'); |
||
| 18 | |||
| 19 | $this->assertSame( |
||
| 20 | $filesystem->getPath('config', 'administrator.php'), |
||
| 21 | getcwd().'/config/administrator.php' |
||
| 22 | ); |
||
| 23 | |||
| 24 | $this->assertSame( |
||
| 25 | $filesystem->getPath('config'.DIRECTORY_SEPARATOR.'administrator.php'), |
||
| 26 | getcwd().'/config/administrator.php' |
||
| 27 | ); |
||
| 28 | |||
| 29 | $this->assertTrue($filesystem->exists('php', 'BusinessLogic.php')); |
||
| 30 | $this->assertFalse($filesystem->exists('php', 'InvalidLogic.php')); |
||
| 31 | } |
||
| 32 | } |
||
| 33 |