【发布时间】:2017-06-01 10:29:37
【问题描述】:
我有一个 WebTestCase 类:
use Symfony\Bundle\FrameworkBundle\Test\WebTestCase;
use Symfony\Bundle\FrameworkBundle\Client;
class ApiAdminInvoiceControllerTest extends WebTestCase
{
public function test()
{
...
$this->assertArrayHasKey('id', $array);
...
}
}
我在所有断言中都有这个错误:Method 'assertArrayHasKey' not found。
【问题讨论】:
标签: php symfony unit-testing web-testing