phpunit throws Uncaught exception 'PHPUnit_Framework_Exception

后端 未结 3 1453
梦谈多话
梦谈多话 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:44

    I was having the same problem with the same setup. From what I understand, more recent versions of PHPUnit require at least one actual test to run properly. After creating a simple test, it worked.

    myProject/tests/application/DemoTest.php

    assertTrue(true);
        }
    }
    

提交回复
热议问题