phpunit过去工作得很好,提供断言次数,错误...
但后来我试图用梨装netbeans安装骨架生成器,事情搞砸了(我必须安装和删除许多东西)。
谁能告诉我什么是错的?
http://i.stack.imgur.com/AjDj7.png
CategoryControllerTest.php
<?php
namespace Ens\JobeetBundle\Tests\Controller;
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
class CategoryControllerTest extends WebTestCase {
public function testShow() {
$client = static::createClient();
$crawler = $client->request('GET','/category/index');
$this->assertEquals('Ens\JobeetBundle\Controller\CategoryController::show',$client->getRequest()->attributes->get('_controller'));
$this->assertTrue(200 === $client->getResponse()->getStatusCode());
}
}
php.ini错误处理部分:
error_reporting = E_ALL & ~E_DEPRECATED & ~E_STRICT
display_errors = On
display_startup_errors = Off
log_errors = On
log_errors_max_len = 1024
ignore_repeated_errors = Off
ignore_repeated_source = Off
report_memleaks = On
track_errors = Off
html_errors = On