嗨,我是 Zend Framework 2 的新手,这行代码有问题:
$sql = new Sql($this->tableGateway->getAdapter());
如果我使用 Phpunit 进行测试,我会收到错误
Argument 1 passed to Zend\Db\Sql\Sql::__construct() must implement interface
Zend\Db\Adapter\AdapterInterface, null given, called in C:\xampp\htdocs\zend2