| Total Complexity | 4 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 1 | <?php |
||
| 14 | class ServerFactoryTest extends TestCase |
||
| 15 | { |
||
| 16 | public function testMake() |
||
| 17 | { |
||
| 18 | if (!in_array(PHP_OS, ['Darwin', 'Linux'])) { |
||
| 19 | return; |
||
| 20 | } |
||
| 21 | |||
| 22 | $server = (new ServerFactory(new Clock))(); |
||
| 23 | |||
| 24 | $this->assertInstanceOf(Server::class, $server); |
||
| 25 | $this->assertInstanceOf(Server::class, ServerFactory::build(new Clock)); |
||
| 26 | } |
||
| 27 | |||
| 28 | public function testThrowWhenUnsupportedOS() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |