Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
18 | public function testWebApplication() |
||
19 | { |
||
20 | $acceptHeader = '"Accept: application/json"'; |
||
21 | |||
22 | /** @noinspection PhpUndefinedConstantInspection */ |
||
23 | $host = PHP_WEBSERVER_HOST; |
||
24 | /** @noinspection PhpUndefinedConstantInspection */ |
||
25 | $port = PHP_WEBSERVER_PORT; |
||
26 | |||
27 | $process = new Process("curl -H $acceptHeader http://$host:$port/"); |
||
28 | |||
29 | $this->runProcessWithRetry($process); |
||
30 | |||
31 | self::assertContains('"name":"'. PersonLoader::PERSON_1_NAME . '"', $process->getOutput()); |
||
32 | } |
||
52 |