-
-
Notifications
You must be signed in to change notification settings - Fork 339
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPUnit_Framework_TestCase not found #727
Labels
Comments
Hello, I can prepare merge request for this if you want. |
It will be fine! |
AnzeDspot
added a commit
to AnzeDspot/incubator
that referenced
this issue
Feb 9, 2017
AnzeDspot
added a commit
to AnzeDspot/incubator
that referenced
this issue
Feb 10, 2017
AnzeDspot
added a commit
to AnzeDspot/incubator
that referenced
this issue
Feb 10, 2017
AnzeDspot
added a commit
to AnzeDspot/incubator
that referenced
this issue
Feb 10, 2017
AnzeDspot
added a commit
to AnzeDspot/incubator
that referenced
this issue
Feb 10, 2017
AnzeDspot
added a commit
to AnzeDspot/incubator
that referenced
this issue
Feb 10, 2017
sergeyklay
pushed a commit
that referenced
this issue
Mar 3, 2017
sergeyklay
pushed a commit
that referenced
this issue
Mar 3, 2017
sergeyklay
pushed a commit
that referenced
this issue
Mar 9, 2017
sergeyklay
pushed a commit
that referenced
this issue
Mar 9, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Following documentation for creating functional tests with Phalcon and Incubator error in the title is thrown and can be fixed by changing namespace of the PHPUnit TestCase.
https://docs.phalconphp.com/en/3.0.0/reference/unit-testing.html
Currently Phalcon Incubator UnitTestCase extends PHPUnit TestCase in following way:
use PHPUnit_Framework_TestCase as TestCase;
which does not work, since it's not loaded in that way anymore, however
use PHPUnit\Framework\TestCase as TestCase;
works as supposed.
Looking at composer autoloader it only contains this regarding the PHPUnit TestCase and is loaded that way only.
and according to composer it's loaded that way by default:
TestHelper.php is my bootstrap and looks like this:
Details
Composer version 1.3.2 2017-01-27 18:23:41
The text was updated successfully, but these errors were encountered: