From: Mark K. <ma...@me...> - 2007-08-23 23:16:15
|
It seems that there's a difference between php4 and php5 in the way $test_case->_observers work. if I setup some mock objects in my "setUp" method of my test class, in PHP4 the expectations of the mock objects are satisfied after *all* the methods are run, but in PHP5 they are checked after *each* method is run. I'm probably not saying this exactly right, but there is a difference in the way simple test functions with mock objects' expectations in 4 and 5 I can have perfectly valid code that runs the exact same in php4 and 5, but have my tests fail if I run simple test in 5. Everything passes when i run simple test with php4. Sorry, I can't find anymore bug info on it right now, it's pretty hard to get in there an add print_rs to everything. |