Jake McGraw wrote:
> 
> I'm digging into some TDD, and I've managed to convert all of my Models to
> use Zend_Test_PHPUnit_DatabaseTestCase and it works wonderfully.
> 
> My question is, is there any way to integrate Connection Mocking, like
> that
> with my model testing to work within the
> Zend_Test_PHPUnit_ControllerTestCase? I see that PHPUnit has a whole suite
> dedicated database mocking, but I really enjoy the simplicity and tight
> integration between Zend_Db and Zend_Test_PHPUnit_DatabaseTestCase.
> 
> Thanks,
> - jake
> 
> 

Hi Jake, 

I am also iterested in such testing topic and may have some thoughts on the
topic. Whould you please explain what do you mean by Connection Mocking? Do
you whant to use a mock database adapter? Or maybe a mock database for
testing? I wonder what's your approach to testing.

As far as i can tell PHPUnit's suite for database mocking is exactly what
Zend_Test_PHPUnit_DatabaseTestCase is (it's an extension).

Dmitry.

-- 
View this message in context: 
http://n4.nabble.com/Using-Connection-Mock-with-Zend-Test-PHPUnit-ControllerTestCase-tp974928p975429.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to