llundin llundin - 2 years ago 233
PHP Question

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?

Answer Source

This class is part of the incubator: https://github.com/phalcon/incubator

$loader = new Phalcon\Loader();

    'Phalcon' => '/path/to/incubator/Library/Phalcon/'

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download