0
Galley
When I run a test on phpunit whose class extends from Phpunit Dbunit Testcase I get this message:
PHP Fatal error: Class 'PHPUnit\DbUnit\TestCase' not found
But when I run a test of a class extending Phpunit Framework Testcase works!
This is my Composer.json:
{
"require": {
},
"require-dev": {
"phpunit/phpunit": "6.0.7",
"phpunit/dbunit": "^3.0"
}
}
Any idea?
Have you checked the briefcase
vendor
if thedbunit
was installed correctly?– Woss
Using php 7 in the command line interface (CLI)? If not sure
php -v
– Guilherme Nascimento
Anderson, what do you mean installed correctly?
– João Marcos Bizarro
Hello, William. Yes, php 7. Confirmed by php -v.
– João Marcos Bizarro
Exists the directory
dbunit
referring to the repository withinvendor
? Maybe when you executedcomposer install
made a mistake that went unnoticed.– Woss
The dbunit directory does exist. I thought about it before, but had checked. Apparently everything is normal.
– João Marcos Bizarro