jwage /
usage-finder
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace UsageFinder\Tests; |
||
| 6 | |||
| 7 | use UsageFinder\GuessCodePath; |
||
| 8 | use function sys_get_temp_dir; |
||
| 9 | |||
| 10 | final class GuessCodePathTest extends TestCase |
||
| 11 | { |
||
| 12 | public function testInvoke() : void |
||
| 13 | { |
||
| 14 | self::assertSame('src', (new GuessCodePath())->__invoke(__DIR__ . '/example')); |
||
|
0 ignored issues
–
show
Bug
Best Practice
introduced
by
Loading history...
|
|||
| 15 | } |
||
| 16 | |||
| 17 | public function testInvokeReturnsNull() : void |
||
| 18 | { |
||
| 19 | $path = sys_get_temp_dir() . '/usage-finder-does-not-exist'; |
||
| 20 | |||
| 21 | self::assertNull((new GuessCodePath())->__invoke($path)); |
||
| 22 | } |
||
| 23 | } |
||
| 24 |