This Question is Answered

2 "helpful" answers available (2 pts)
2 Replies Last post: Jan 22, 2013 8:05 PM by Anton Visser  
Anton Visser Newbie 2 posts since
Jan 18, 2013
Currently Being Moderated

Jan 18, 2013 8:53 PM

Test not foud for Class XXX

I have a ZF1 project with loads of PHPUnit tests in a test directory. I've marked the test directory as the "Test Source Root" but everytime I hit Ctrl+Shift+t to navigate to a test I get the error message "Test not foud for Class XXX  Generate test?"

 

Am I missing some sort of mapping or other configuration option to get that navigation to work?

Andriy Bazanov Master 2,647 posts since
May 28, 2010
Currently Being Moderated
Jan 18, 2013 11:00 PM in response to: Anton Visser
Re: Test not foud for Class XXX

Hi Anton,

 

How do you name your test classes/files/methods?

 

AFAIK it should be named in standardized way (following PHPUnit naming convention), e.g. Zend_Controller_Action --> Zend_Controller_ActionTest (for classes), Folder/FileName --> Folder/FilenameTest (for files), doSomething --> testDoSomething (for methods).

 

I have them named like that and it had never failed so far (P.S. I do not use ZF)

More Like This

  • Retrieving data ...