Hi,

I'm trying to stub specific part of Zend Db (ZF2.2.1).

$statement = $this->getAdapter()->createStatement();
$query->prepareStatement($this->getAdapter(), $statement);

So $this->getAdapter() is an instance of
Mock::getMock('Zend\Db\Adapter\Adapter') And $query an instance of
Zend\Db\Sql\AbstractSql.

How I can inject data in this $statement?

Regards,

-- 
Pierre Rambaud
Website: http://pierrerambaud.com <http://rambaudpierre.fr>
G+: https://plus.google.com/u/0/107809758756474139920/posts
Github: https://github.com/PierreRambaud

Reply via email to