Total Complexity | 5 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | final class BinaryTest extends TestCase |
||
9 | { |
||
10 | /** @var string */ |
||
11 | private $bin; |
||
12 | |||
13 | protected function setUp(): void |
||
14 | { |
||
15 | if (strpos(\PHP_OS, "WIN") === 0) { |
||
16 | $this->bin = __DIR__ . "\\..\\..\\bin\\composer-require-checker.bat"; |
||
17 | } else { |
||
18 | $this->bin = __DIR__ . "/../../bin/composer-require-checker"; |
||
19 | } |
||
20 | } |
||
21 | |||
22 | public function testSuccess(): void |
||
23 | { |
||
24 | exec($this->bin, $output, $return); |
||
25 | $this->assertSame(0, $return); |
||
26 | } |
||
27 | |||
28 | public function testUnknownSymbols(): void |
||
34 | } |
||
35 | |||
36 | public function testInvalidConfiguration(): void |
||
42 | } |
||
43 | } |
||
44 |