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
introduced
by
![]() The method
PHPUnit\Framework\Assert::assertSame() is not static, but was called statically.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
![]() |
|||||||
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 |