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?

2 comments

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)
0

Thanks Andriy. Turns out, that I had the test directory structure correct, messed up the test class names, but now they are working.

0

Please sign in to leave a comment.