-
Notifications
You must be signed in to change notification settings - Fork 50
PHPUnit 6 support? #20
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
Comments
In the mean time, aliasing the classes in my test $phpunitAliases = [
'\PHPUnit\Framework\Test' => '\PHPUnit_Framework_Test',
'\PHPUnit\Framework\TestListener' => '\PHPUnit_Framework_TestListener',
'\PHPUnit\Framework\Warning' => '\PHPUnit_Framework_Warning',
'\PHPUnit\Framework\AssertionFailedError' => '\PHPUnit_Framework_AssertionFailedError',
'\PHPUnit\Framework\TestSuite' => '\PHPUnit_Framework_TestSuite',
];
foreach ($phpunitAliases as $namespaced => $alias) {
if (!class_exists($alias)) {
class_alias($namespaced, $alias);
}
} |
The problem with aliasing is that if other packages you have installed require PHPUnit 6, installation will fail because of conflicting requirements 🙁 |
dborsatto
added a commit
that referenced
this issue
Aug 8, 2017
Refactored package to use PHPUnit 6 and namespaces (closes #20)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Are there plans to support PHPUnit 6? The PHPUnit code is now namespaced.
The text was updated successfully, but these errors were encountered: