Skip to content
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

PHAR distribution of PHPUnit 5.0.1 does not work #1887

Closed
addshore opened this issue Oct 2, 2015 · 8 comments
Closed

PHAR distribution of PHPUnit 5.0.1 does not work #1887

addshore opened this issue Oct 2, 2015 · 8 comments
Labels
type/bug Something is broken

Comments

@addshore
Copy link

addshore commented Oct 2, 2015

Fatal error: Trait 'PHPUnit_Extensions_Database_TestCase_Trait' not found in phar://phpunit.phar/phar/dbunit/Extensions/Database/TestCase.php on line 19

Call Stack:
0.0790 462440 1. {main}() phpunit.phar:0
0.1510 3807960 2. require('phar://phpunit.phar/phar/dbunit/Extensions/Database/TestCase.php') phpunit.phar:193

Apparently 5.0.0 was working fine. (or at least more functional than the 5.0.1 build) ;)

@sebastianbergmann
Copy link
Owner

Does this also happen when PHPUnit is installed via Composer?

@sebastianbergmann sebastianbergmann added the type/bug Something is broken label Oct 2, 2015
@sebastianbergmann
Copy link
Owner

Nevermind, looks like this is limited to the PHAR distribution of PHPUnit (and caused by a bug in PHPAB).

@JeroenDeDauw
Copy link
Contributor

I saw this issue when using the phar for 5.0.1. Was not in the 5.0.0 one.

@sebastianbergmann
Copy link
Owner

The PHAR for PHPUnit 5.0.0 is not affected as it had a wrong version of DbUnit bundled.

@sebastianbergmann
Copy link
Owner

I have pulled the PHAR distribution of PHPUnit 5.0.1.

@sebastianbergmann sebastianbergmann changed the title 5.0.1 unfix release... Fatal error: Trait 'PHPUnit_Extensions_Database_TestCase_Trait' not found PHAR distribution of PHPUnit 5.0.1 does not work Oct 2, 2015
@jamesapg
Copy link

jamesapg commented Oct 2, 2015

I have a similar issue with the 5.0.0 phar distribution:

$ wget -q https://phar.phpunit.de/phpunit.phar
$ chmod +x phpunit.phar
$ ./phpunit.phar --version
PHP Parse error:  syntax error, unexpected '.', expecting '&' or variable (T_VARIABLE) in phar:///tmp/phpunit.phar/phar/phpunit-mock-objects/Framework/MockObject/Builder/InvocationMocker.php on line 82
PHP Stack trace:
PHP   1. {main}() /tmp/phpunit.phar:0

@sebastianbergmann
Copy link
Owner

@jamesfsuk That looks like you are using a version of PHP that is no longer supported.

@addshore
Copy link
Author

addshore commented Oct 3, 2015

many thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

4 participants