@@ -38,8 +38,9 @@ class DevServerTest extends TestCase
3838
3939 public function testDevServer (): void
4040 {
41- $ devServer = new DevServer (TRUE , 'http://localhost:3000 ' , '' , 0.1 , $ this ->httpClient );
41+ $ devServer = new DevServer (TRUE , 'http://localhost:3000 ' , NULL , 0.1 , $ this ->httpClient );
4242 Assert::true ($ devServer ->isEnabled ());
43+ Assert::same ($ devServer ->getUrl (), 'http://localhost:3000 ' );
4344
4445 $ this ->httpClient ->shouldReceive ('request ' )
4546 ->with ('GET ' , 'http://localhost:3000 ' , ['http_errors ' => FALSE , 'verify ' => FALSE , 'timeout ' => 0.1 ])
@@ -64,7 +65,7 @@ class DevServerTest extends TestCase
6465
6566 public function testUnavailable (): void
6667 {
67- $ devServer = new DevServer (TRUE , 'http://localhost:3000 ' , '' , 0.5 , $ this ->httpClient );
68+ $ devServer = new DevServer (TRUE , 'http://localhost:3000 ' , NULL , 0.5 , $ this ->httpClient );
6869 Assert::true ($ devServer ->isEnabled ());
6970
7071 $ this ->httpClient ->shouldReceive ('request ' )
@@ -76,7 +77,7 @@ class DevServerTest extends TestCase
7677
7778 public function testDisabled (): void
7879 {
79- $ devServer = new DevServer (FALSE , 'http://localhost:3000 ' , '' , 0.1 , $ this ->httpClient );
80+ $ devServer = new DevServer (FALSE , 'http://localhost:3000 ' , NULL , 0.1 , $ this ->httpClient );
8081 Assert::false ($ devServer ->isEnabled ());
8182 Assert::false ($ devServer ->isAvailable ());
8283 }
0 commit comments