mirror of
https://github.com/doctrine/orm.git
synced 2026-03-24 06:52:09 +01:00
"Class 'Doctrine\Tests\OrmFunctionalTestCase' not found" when trying to run PHPUnit #4984
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @StanleySathler on GitHub (Jan 19, 2016).
Originally assigned to: @Ocramius on GitHub.
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 commented on GitHub (Jan 19, 2016):
@StanleySathler
Try that :-)
@Ocramius commented on GitHub (Jan 19, 2016):
Also, obviously requires patching those docs, I suppose :-\
@StanleySathler commented on GitHub (Jan 19, 2016):
@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 commented on GitHub (Jan 20, 2016):
@StanleySathler if that snippet I gave you works (tests run), then you can simply edit
tests/README.markdownand send it back at us (you can edit it directly from the github UI)@Jean85 commented on GitHub (Jan 20, 2016):
I did it ;)
@Ocramius commented on GitHub (Jan 20, 2016):
Linking #5623
@StanleySathler commented on GitHub (Jan 21, 2016):
Ocramius, the snippet didn't work. I'll try Jean's suggestions and I'll back with feedback.
@Jean85 commented on GitHub (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 commented on GitHub (Jun 22, 2017):
@Ocramius do we need to update anything here regarding this issue?
@Ocramius commented on GitHub (Jun 22, 2017):
No, this is dealt with in https://github.com/doctrine/doctrine2/pull/5623