Environment: PHP 7.0 macOS apache
The code is :
public function testBasicExample()
{
$this->visit('/');
}
Run phpunit. The result is:
1) ExampleTest::testBasicExample
A request to [http://localhost] failed. Received status code [404].
It's always normal when in Chrome.