[TYPO3-dev] PHPUnit cache?

François Suter fsu-lists at cobweb.ch
Tue Nov 26 14:15:17 CET 2013


Hi Oli,

Thanks for your answer.

> How do you include/use the class CalculationTest?

It's a base class for this series of tests. So it's part of the same 
namespace and found in the same directory. As such I have no explicit 
include/require statements, since namespaced classes are normally 
resolved automatically.

> - Have you checked that there are no namespace issues? Correct use of
> "use", correct backslashes, correct namespaces?

I can't find any error there.

> - Have you checked that the class name and the file name of the included
> file match?

Yes, they do. Actually it works fine in other similar unit tests.

> - Have you checked that the namespace and the directory structure match?

As far as I understand it, they do. Anyway, again, it works from the 
other unit tests.

> - AFAIK, the extbase autoloader can only autoload classes within
> Classes/. Is the included class provided in ext_autoload.php? (Or you
> could require_once the class file.)

Explicitly requiring this base class solves the issues, but I still 
don't understand why this particular test cannot find it while the 
others can.

Cheers

-- 

Francois Suter

Work: Cobweb Development Sarl - http://www.cobweb.ch

TYPO3: Help the project! - http://typo3.org/contribute/

Appreciate my work? Support me -
http://www.monpetitcoin.com/en/francois/support-me/




More information about the TYPO3-dev mailing list