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

"Class 'Doctrine\Tests\OrmFunctionalTestCase' not found" when trying to run PHPUnit #5620

Closed
StanleySathler opened this issue Jan 19, 2016 · 10 comments
Assignees
Milestone

Comments

@StanleySathler
Copy link

Guys, since I'm new as developer, I'm trying to participate on Open Source community.

I have here a Xubuntu 14.04, 64-bits. Already installed Apache2, MySQL and PHP5 (5.5.9). After forked the repository, I'm trying to run the unit tests... it is my first time with them.

I've been following these instructions, but when I type $ phpunit Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php, I get this error:

PHP Fatal error: Class 'Doctrine\Tests\OrmFunctionalTestCase' not found in /var/www/html/doctrine2/tests/Doctrine/Tests/ORM/Functional/Locking/GearmanLockTest.php on line 14

I think that I'm missing something, because I already checked this class and its namespace and, theoretically, it exists.

Could someone help me? And I am sorry if I am making a foolish mistake.

@Ocramius
Copy link
Member

@StanleySathler

git clone git@github.com:doctrine/doctrine2.git
cd doctrine2
composer install
./vendor/bin/phpunit

Try that :-)

@Ocramius
Copy link
Member

Also, obviously requires patching those docs, I suppose :-\

@StanleySathler
Copy link
Author

@Ocramius

I installed composer and its packages, but I don't have any idea of how patch these docs. Is it something like a class mapper? Could you send me any link that could me teach more about it?

@Ocramius
Copy link
Member

@StanleySathler if that snippet I gave you works (tests run), then you can simply edit tests/README.markdown and send it back at us (you can edit it directly from the github UI)

@Jean85
Copy link
Contributor

Jean85 commented Jan 20, 2016

I did it ;)

@Ocramius
Copy link
Member

Linking #5623

@Ocramius Ocramius self-assigned this Jan 20, 2016
@Ocramius Ocramius added this to the 2.6.0 milestone Jan 20, 2016
@StanleySathler
Copy link
Author

Ocramius, the snippet didn't work. I'll try Jean's suggestions and I'll back with feedback.

@Jean85
Copy link
Contributor

Jean85 commented Jan 21, 2016

@StanleySathler , my snippet is the same, I just added that you need to install at least SQLite to have a green test suite to start with.

@lcobucci
Copy link
Member

@Ocramius do we need to update anything here regarding this issue?

@Ocramius
Copy link
Member

No, this is dealt with in #5623

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants