Skip to content

Instantly share code, notes, and snippets.

@Spoygg
Created July 30, 2013 14:33
Show Gist options
  • Save Spoygg/6113448 to your computer and use it in GitHub Desktop.
Save Spoygg/6113448 to your computer and use it in GitHub Desktop.
PHP Fatal error: Call to a member function getName() on a non-object in /source/src/App/DomainBundle/Tests/ServiceTestCase.php on line 108
PHP Stack trace:
PHP 1. {main}() /source/vendor/phpunit/phpunit/composer/bin/phpunit:0
PHP 2. PHPUnit_TextUI_Command::main() /source/vendor/phpunit/phpunit/composer/bin/phpunit:63
PHP 3. PHPUnit_TextUI_Command->run() /source/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:129
PHP 4. PHPUnit_TextUI_TestRunner->doRun() /source/vendor/phpunit/phpunit/PHPUnit/TextUI/Command.php:176
PHP 5. PHPUnit_Framework_TestSuite->run() /source/vendor/phpunit/phpunit/PHPUnit/TextUI/TestRunner.php:349
PHP 6. PHPUnit_Framework_TestSuite->run() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:705
PHP 7. PHPUnit_Framework_TestSuite->runTest() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:745
PHP 8. PHPUnit_Framework_TestCase->run() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestSuite.php:775
PHP 9. PHPUnit_Framework_TestResult->run() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:776
PHP 10. PHPUnit_Framework_TestCase->runBare() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestResult.php:648
PHP 11. PHPUnit_Framework_TestCase->runTest() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:831
PHP 12. ReflectionMethod->invokeArgs() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:976
PHP 13. App\DomainBundle\Tests\ApiKey\ApiKeyServiceTest->testGetUsernameForKeyCachesUsernamePerKey() /source/vendor/phpunit/phpunit/PHPUnit/Framework/TestCase.php:976
PHP 14. App\DomainBundle\Tests\ServiceTestCase::getUserByName() /source/src/App/DomainBundle/Tests/ApiKey/ApiKeyServiceTest.php:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment