| Total Complexity | 4 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 8 | class GuessFromComposerInstalledJsonTest extends TestCase |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var GuessFromComposerInstalledJson |
||
| 12 | */ |
||
| 13 | private $guesser; |
||
| 14 | |||
| 15 | protected function setUp(): void |
||
| 16 | { |
||
| 17 | $this->guesser = new GuessFromComposerInstalledJson(dirname(__DIR__, 3)); |
||
| 18 | } |
||
| 19 | |||
| 20 | public function testGuessVendorClass(): void |
||
| 21 | { |
||
| 22 | $result = ($this->guesser)(TestCase::class); |
||
| 23 | |||
| 24 | self::assertNotEmpty($result); |
||
| 25 | self::assertContains('phpunit/phpunit', $result); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testDoNotGuessVendorFunction(): void |
||
| 33 | } |
||
| 34 | |||
| 35 | |||
| 36 | public function testDoNotGuessClassFromProject(): void |
||
| 43 |