Closed macintoshplus closed 7 years ago
Hi, I have a strange result.
The assert is wrong but the UnexpectedValueException is more strange !
UnexpectedValueException
The dir /var/www/project/public/vendor/atoum/reports-extension/../../symfony/filesystem/ does not exists in fact. All other tests and assert pass.
/var/www/project/public/vendor/atoum/reports-extension/../../symfony/filesystem/
==> UnexpectedValueException: RecursiveDirectoryIterator::__construct(/var/www/project/public/vendor/atoum/reports-extension/../../symfony/filesystem/): failed to open dir: No such file or directory in /var/www/project/public/vendor/atoum/atoum/classes/autoloader.php:172 ==> Stack trace: ==> #0 /var/www/project/public/vendor/atoum/atoum/classes/autoloader.php(172): RecursiveDirectoryIterator->__construct('/var/www/project/p...', 4096) ==> #1 /var/www/project/public/vendor/atoum/atoum/classes/autoloader.php(198): mageekguy\atoum\autoloader->getPath('mageekguy\\atoum...') ==> #2 [internal function]: mageekguy\atoum\autoloader->requireClass('mageekguy\\atoum...') ==> #3 [internal function]: spl_autoload_call('mageekguy\\atoum...') ==> #4 /var/www/project/public/vendor/atoum/atoum/classes/asserter/resolver.php(105): class_exists('mageekguy\\atoum...', true) ==> #5 /var/www/project/public/vendor/atoum/atoum/classes/asserter/resolver.php(83): mageekguy\atoum\asserter\resolver->checkClass('mageekguy\\atoum...') ==> #6 /var/www/project/public/vendor/atoum/atoum/classes/asserter/generator.php(90): mageekguy\atoum\asserter\resolver->resolve('hasMassage') ==> #7 /var/www/project/public/vendor/atoum/atoum/classes/asserter/generator.php(95): mageekguy\atoum\asserter\generator->getAsserterClass('hasMassage') ==> #8 /var/www/project/public/vendor/atoum/atoum/classes/test/asserter/generator.php(45): mageekguy\atoum\asserter\generator->getAsserterInstance('hasMassage', Array, Object(InExtenso\Domain\Project\Tests\Units\CommandHandling\FileHandler)) ==> #9 /var/www/project/public/vendor/atoum/atoum/classes/test.php(506): mageekguy\atoum\test\asserter\generator->getAsserterInstance('hasMassage', Array) ==> #10 [internal function]: mageekguy\atoum\test->mageekguy\atoum\{closure}('hasMassage', Array) ==> #11 /var/www/project/public/vendor/atoum/atoum/classes/test/assertion/manager.php(122): call_user_func_array(Object(Closure), Array) ==> #12 /var/www/project/public/vendor/atoum/atoum/classes/test/assertion/manager.php(87): mageekguy\atoum\test\assertion\manager->invokeHandlerFrom(Array, 'hasMassage', Array) ==> #13 /var/www/project/public/vendor/atoum/atoum/classes/test/assertion/manager.php(33): mageekguy\atoum\test\assertion\manager->invokeMethodHandler('hasMassage', Array) ==> #14 /var/www/project/public/vendor/atoum/atoum/classes/test.php(204): mageekguy\atoum\test\assertion\manager->__call('hasMassage', Array) ==> #15 /var/www/project/public/vendor/atoum/atoum/classes/test/asserter/generator.php(28): mageekguy\atoum\test->__call('hasMassage', Array) ==> #16 /var/www/project/public/vendor/atoum/atoum/classes/asserter.php(53): mageekguy\atoum\test\asserter\generator->__call('hasMassage', Array) ==> #17 /var/www/project/public/vendor/atoum/atoum/classes/asserters/variable.php(72): mageekguy\atoum\asserter->__call('hasMassage', Array) ==> #18 /var/www/project/public/src/InExtenso/Domain/Project/Tests/Units/CommandHandling/FileHandler.php(141): mageekguy\atoum\asserters\variable->__call('hasMassage', Array) ==> #19 /var/www/project/public/vendor/atoum/atoum/classes/test.php(1290): InExtenso\Domain\Project\Tests\Units\CommandHandling\FileHandler->testSkipCommandInvalid() ==> #20 -(1): mageekguy\atoum\test->runTestMethod('testSkipCommand...') ==> #21 {main}
If I remove this extension, all tests pass !
Hi, I have a strange result.
The assert is wrong but the
UnexpectedValueException
is more strange !The dir
/var/www/project/public/vendor/atoum/reports-extension/../../symfony/filesystem/
does not exists in fact. All other tests and assert pass.If I remove this extension, all tests pass !