lundi 25 juillet 2016

Phalcon - mock models for unit testing

I am trying to perform a Unit test in my Phalcon app. I have setup the Unit test environment according to the tutorial provided.

What I am trying to do is to mock database adapter only for several functions. I want a mocked DB adapter, and when I call get method I want it to return a known dataset.

Thanks.

Aucun commentaire:

Enregistrer un commentaire