【发布时间】:2016-11-18 09:03:28
【问题描述】:
环境:PHP 7.0 macOS apache
代码是:
public function testBasicExample()
{
$this->visit('/');
}
运行 phpunit。 结果是:
1) ExampleTest::testBasicExample
A request to [http://localhost] failed. Received status code [404].
在 Chrome 中总是正常的。
【问题讨论】:
-
您使用的是 vagrant 还是任何 VM?
-
没有.......................
标签: php laravel testing phpunit