phpunit cannot find Class, PHP Fatal error
问题 I get phpunit and install it as this link using the simplest way for test purposes. I just download the phpunit.phar file, chmod & rename & move to /usr/local/bin Then, I run phpunit --version, its ok. PHPUnit 3.7.27 by Sebastian Bergmann I write a simple test public function testSomething(){ $this -> assertTrue(true) } Then I go into the source file folder, phpunit --colors Test It works. So, I decide write a complex demo. My project folder structure is like this. Project Name --> app -->