1
无论我做什么,我总是得到Symfony的2功能测试外部URL
的Symfony \分量\ HttpKernel \异常\ NotFoundHttpException: “找到没有 路线[...]”
在$crawler->text()
,当我尝试请求$crawler = $client->request('GET', 'http://anotherdomain.com');
的外部URL。
我想这样做,因为我正在使用另一个virtualHost来使用Symfony 1.2和其他一些Symfony 2.3来渲染一些页面。
我也试图
$client = static::createClient(array(), array('HTTP_HOST' => 'anotherdomain.com'));
$client->followRedirects(true);
但它总是试图使其whithin Symfony的2
谢谢,这就是我怀疑的! – Bonswouar