I am testing a method on my class that does some date checking. The problem is that the method depends on today\'s date (which changes every day), which makes this difficult to test. How can I mock to
I am trying to write test case for my Row classes and I don\'t really what is the proper way todo that.
I have a command line script that generates some HTML that I am trying to unit test using PHPUnit. Note that this HTML is not seen by a browser, so Selenium is not the right solution for this.
I have a PHPUnit test case class (consisting of some test functions). I would like to write a oneTimeSetUp() function to be called once for all my tests in the class (unlike the standard setUp() funct
I am currently running Selenium commands through PHPUnit to a remote server. I\'ve run into a problem where I am trying to upload an image to an input form.
You may use --stop-on-failure flag to break the unit testing when one of the tests fails. Is there any way开发者_开发问答 quick way to tell PHPUnit to re-run this failed test, instead providing the f
There is a description of what are the mocks and how to work with them: http://www.phpunit.de/manual/current/en/test-doubles.html
I\'ve got a probl开发者_开发百科em in PHPUnit where I would like to use delta parameter in equalTo method when comparing dates.
I\'m writing unit test for my models. Most of them use many standart functions, like time(), date() and so on. What is best approach to mock these functions in Yii testing style?
I am writing a Zend Framework application and unit testing it with PHPUnit.In general, things ar开发者_如何学Goe going swimmingly however I have a small, but annoying issue with PHPUnit and code cover