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

Uncaught ReflectionException with TestDox XML report #3884

Closed
sebastianbergmann opened this issue Oct 5, 2019 · 0 comments
Closed

Uncaught ReflectionException with TestDox XML report #3884

sebastianbergmann opened this issue Oct 5, 2019 · 0 comments
Labels
type/bug Something is broken

Comments

@sebastianbergmann
Copy link
Owner

$ git clone https://github.com/sebastianbergmann/raytracer.git
$ cd raytracer
$ ./tools/phpunit --testdox-xml testdox.xml
PHPUnit 8.4.0 by Sebastian Bergmann and contributors.

Runtime:       PHP 7.3.10 with PCOV 1.0.6
Configuration: /usr/local/src/raytracer/phpunit.xml

.............PHP Fatal error:  Uncaught ReflectionException: Method SebastianBergmann\Raytracer\MatrixTest::test_the_inverse_of_a_matrix_can_be_calculated_for with data set "4x4 matrix"() does not exist in phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/Annotation/Registry.php:62
Stack trace:
#0 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/Annotation/Registry.php(62): ReflectionMethod->__construct('SebastianBergma...', 'test_the_invers...')
#1 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/Test.php(254): PHPUnit\Util\Annotation\Registry->forMethod('SebastianBergma...', 'test_the_invers...')
#2 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/TestDox/XmlResultPrinter.php(170): PHPUnit\Util\Test::getInlineAnnotations('SebastianBergma...', 'test_the_invers...')
#3 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestResult.php(360): PHPUnit\Util\TestDox\XmlResultPrinter->endTest(Object(SebastianBergmann\Raytracer\MatrixTest), 0.00031900405883789)
#4 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestResult.php(674): PHPUnit\Framework\TestResult->endTest(Object(SebastianBergmann\Raytracer\MatrixTest), 0.00031900405883789)
#5 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestCase.php(597): PHPUnit\Framework\TestResult->run(Object(SebastianBergmann\Raytracer\MatrixTest))
#6 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestSuite.php(432): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#7 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestSuite.php(432): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#8 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestSuite.php(432): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#9 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/TextUI/TestRunner.php(425): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#10 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/TextUI/Command.php(94): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#11 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/TextUI/Command.php(66): PHPUnit\TextUI\Command->run(Array, true)
#12 /usr/local/src/raytracer/tools/phpunit(647): PHPUnit\TextUI\Command::main()
#13 {main}

Next PHPUnit\Util\Exception: Method SebastianBergmann\Raytracer\MatrixTest::test_the_inverse_of_a_matrix_can_be_calculated_for with data set "4x4 matrix"() does not exist in phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/Annotation/Registry.php:64
Stack trace:
#0 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/Test.php(254): PHPUnit\Util\Annotation\Registry->forMethod('SebastianBergma...', 'test_the_invers...')
#1 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/TestDox/XmlResultPrinter.php(170): PHPUnit\Util\Test::getInlineAnnotations('SebastianBergma...', 'test_the_invers...')
#2 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestResult.php(360): PHPUnit\Util\TestDox\XmlResultPrinter->endTest(Object(SebastianBergmann\Raytracer\MatrixTest), 0.00031900405883789)
#3 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestResult.php(674): PHPUnit\Framework\TestResult->endTest(Object(SebastianBergmann\Raytracer\MatrixTest), 0.00031900405883789)
#4 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestCase.php(597): PHPUnit\Framework\TestResult->run(Object(SebastianBergmann\Raytracer\MatrixTest))
#5 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestSuite.php(432): PHPUnit\Framework\TestCase->run(Object(PHPUnit\Framework\TestResult))
#6 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestSuite.php(432): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#7 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Framework/TestSuite.php(432): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#8 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/TextUI/TestRunner.php(425): PHPUnit\Framework\TestSuite->run(Object(PHPUnit\Framework\TestResult))
#9 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/TextUI/Command.php(94): PHPUnit\TextUI\TestRunner->doRun(Object(PHPUnit\Framework\TestSuite), Array, true)
#10 phar:///usr/local/src/raytracer/tools/phpunit/phpunit/TextUI/Command.php(66): PHPUnit\TextUI\Command->run(Array, true)
#11 /usr/local/src/raytracer/tools/phpunit(647): PHPUnit\TextUI\Command::main()
#12 {main}
  thrown in phar:///usr/local/src/raytracer/tools/phpunit/phpunit/Util/Annotation/Registry.php on line 64
@sebastianbergmann sebastianbergmann added the type/bug Something is broken label Oct 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Something is broken
Projects
None yet
Development

No branches or pull requests

1 participant