Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Phalcon UnitTesting

I am running the example from the documentation: http://docs.phalconphp.com/en/latest/reference/unit-testing.html#sample-unit-test

I want to create an abstract unit test from Phalcon\Test\UnitTestCase as in the documentation. However when I run my test I become:

PHP Fatal error:  Class 'Phalcon\Test\UnitTestCase' not found 

I have followed the exact documentation steps. Did anyone have the same problem and solved it?

like image 299
llundin Avatar asked Sep 17 '13 20:09

llundin


1 Answers

Make sure you run phpunit command in tests folder. It's very important.

Don't run something like phpunit tests/

like image 104
SystemZ Avatar answered Sep 21 '22 16:09

SystemZ