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

Open
opened 2026-01-22 14:55:11 +01:00 by admin · 0 comments
Owner

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.

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](https://github.com/StanleySathler/doctrine2/tree/master/tests), 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.
admin added the Documentation label 2026-01-22 14:55:11 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: doctrine/archived-orm#4982