I am testing the models in zend project, I have a question about how toinvoke the remove() method? this is the find method I am testing:
I\'m having a problem when running my PHPUnit test of creating a new profile, my code doesnt allow duplicate of profile_name and so i have to change it manually everytime i run a test. I actually thou
Is there any way to define different mock-expects for different input arguments? For example, I have database layer class called DB. This class has method called \"Query ( string $query )\", that meth
Does anyone know a reliable way to distinguish between FALSE and NULL with PHPUnit? I\'m trying to distinguish from NULL and FALSE in return values in my assertions.
I want to know how to test the models in zend framework, but it give me a error when I run the test, the code is the following:
I just installed PHPUnit 3.5 on my system, upgrading it from 3.4, and I\'m having some trouble with the new version. When I try to run a test, I always get the same output. Here\'s what I get when I t
My question is, how I concatenate constrains in the clausule with of phpunit? In the dummy example: $test->expects ($this->once())
Been getting more and more in applying proper methodologies to code in a testable manner andthe past 2 weeks have drastically changed my approach when starting a small app from scratch.
C:\\Program Files\\PHP>pear install phpunit/PHPUnit Did not download optional dependencies: ezc/ConsoleTools, use --alldeps to download automatically
I am testing the models in zend project, I have a question about how to get the value of an array, I found it can not be done using $array[index];