-- Chris MacPherson <[email protected]> wrote (on Wednesday, 25 March 2009, 02:10 PM +0000): > Matthew Weier O'Phinney wrote: > > -- Chris MacPherson <[email protected]> wrote > (on Wednesday, 25 March 2009, 12:44 PM +0000): > > > I am trying to test my controller in Zend Studio 6.1 using a > Zend_Test_PHPUnit_ControllerTestCase. I keep getting the following > error. > > Fatal error: Call to undefined method > FooControllerTest::incrementAssertionCounter() in > C:\xampp\php\include\Zend\ > Test\PHPUnit\ControllerTestCase.php on line 1099 > > I found the bug in the issue tracker here > http://www.google.co.uk/url?sa=t&source=web&ct=res&cd=2&url= > > http%3A%2F%2Fframework.zend.com%2Fissues%2Fbrowse%2FZF-4839%3Bjsessionid%3DB4721E524F8C16161F67B08930179CB2%3Fpage%3Dcom.atlassian.jira.plugin.system.issuetabpanels%3Aall-tabpanel > > &ei=pybKSdreKI6v-Aagy5jvBw&usg=AFQjCNE_bL1XAuoh7_UKWt80_uSKi-3Y1A&sig2= > FxzqKaB4orh7rsiO0_6wSQ > > I also found this blog post which I tried but still I see the same > error > message. > http://theitdepartment.wordpress.com/2008/11/19/ > zend-framework-17-zend-studio-61-phpunit > > I am using the latest ZF library and not sure what to do to get my > tests > running. > > Any help would be amazing :) > > > What exact versions of the following are you using: > > * PHPUnit > * Zend Framework > > Also, can you run your unit tests from the CLI (i.e., not inside Studio) > without issue? or do you get the same errors? > > > > > I have the latest ZF1.7.7 which I thought would make the testing work as the > change to Zend/Test/PHPUnit/ControllerTestCase.php which checks the PHPUnit > version had been included. however it still gave me the same error. > > I then checked out PHPUnit 3.4 from their repository and used that when > following the instructions from the blog post above. I still get the same > error. > > I haven't tried testing outside of Zend Studio yet, I will have to wait until > I > have more time to set that up as I have not done so before. I might be able to > sort that out tonight maybe.
I cannot reproduce the issue on the CLI, so I'm very curious to see if it's an issue with PHPUnit support in Zend Studio. If you can verify one way or the other, that will help me isolate the issue -- and I may be able to contact the Zend Studio team to notify them of the problem if there is one. -- Matthew Weier O'Phinney Software Architect | [email protected] Zend Framework | http://framework.zend.com/
