phpunit throws Uncaught exception 'PHPUnit_Framework_Exception

后端 未结 3 1473
梦谈多话
梦谈多话 2021-01-12 20:35

I have a Zend Framework project, and want to using unit testing to test it.

In tests folder, I have the phpunit.xml as following;



        
3条回答
  •  青春惊慌失措
    2021-01-12 20:59

    Youll notice its throwing the exception because its looking for a file named the same as the name you provided for your test suite. You need to actually write a test suite and then supply the name of that test suite to your config: http://www.phpunit.de/manual/3.2/en/organizing-test-suites.html

提交回复
热议问题