{"action":"created","issue":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/2174","repository_url":"https://api.github.com/repos/sebastianbergmann/phpunit","labels_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/2174/labels{/name}","comments_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/2174/comments","events_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/2174/events","html_url":"https://github.com/sebastianbergmann/phpunit/issues/2174","id":156867242,"number":2174,"title":"Call to undefined method TestResult::warnings() error","user":{"login":"jeanCarloMachado","id":2252355,"avatar_url":"https://avatars.githubusercontent.com/u/2252355?v=3","gravatar_id":"","url":"https://api.github.com/users/jeanCarloMachado","html_url":"https://github.com/jeanCarloMachado","followers_url":"https://api.github.com/users/jeanCarloMachado/followers","following_url":"https://api.github.com/users/jeanCarloMachado/following{/other_user}","gists_url":"https://api.github.com/users/jeanCarloMachado/gists{/gist_id}","starred_url":"https://api.github.com/users/jeanCarloMachado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jeanCarloMachado/subscriptions","organizations_url":"https://api.github.com/users/jeanCarloMachado/orgs","repos_url":"https://api.github.com/users/jeanCarloMachado/repos","events_url":"https://api.github.com/users/jeanCarloMachado/events{/privacy}","received_events_url":"https://api.github.com/users/jeanCarloMachado/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-25T22:46:38Z","updated_at":"2016-08-13T16:10:03Z","closed_at":"2016-05-30T22:35:25Z","body":"I'm getting this error on the bottom of the suite result in any project I run with phpunit.\r\n\r\nI tested with dev-master (5.4-g7735f76)  and 5.2.12.\r\n\r\n```\r\nPHP Fatal error:  Uncaught Error: Call to undefined method PHPUnit_Framework_TestResult::warnings() in /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:297\r\nStack trace:\r\n#0 /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php(187): PHPUnit_TextUI_ResultPrinter->printWarnings(Object(PHPUnit_Framework_TestResult))\r\n#1 /home/jean/projects/doctrine2/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(446): PHPUnit_TextUI_ResultPrinter->printResult(Object(PHPUnit_Framework_TestResult))\r\n#2 /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit_TextUI_TestRunner->doRun(Array, true)\r\n#3 /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(113): PHPUnit_TextUI_Command->run(Array, true)\r\n#4 /home/jean/.composer/vendor/phpunit/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()\r\n#5 {main}\r\n  thrown in /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php on line 297\r\n\r\nFatal error: Uncaught Error: Call to undefined method PHPUnit_Framework_TestResult::warnings() in /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php:297\r\nStack trace:\r\n#0 /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php(187): PHPUnit_TextUI_ResultPrinter->printWarnings(Object(PHPUnit_Framework_TestResult))\r\n#1 /home/jean/projects/doctrine2/vendor/phpunit/phpunit/src/TextUI/TestRunner.php(446): PHPUnit_TextUI_ResultPrinter->printResult(Object(PHPUnit_Framework_TestResult))\r\n#2 /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(162): PHPUnit_TextUI_TestRunner->doRun(Array, true)\r\n#3 /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/Command.php(113): PHPUnit_TextUI_Command->run(Array, true)\r\n#4 /home/jean/.composer/vendor/phpunit/phpunit/phpunit(47): PHPUnit_TextUI_Command::main()\r\n#5 {main}\r\n  thrown in /home/jean/.composer/vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php on line 297\r\n```\r\n\r\nUsing the phpunit's test suite I dont get this error. I wonder if it might be something related to my enviroment?"},"comment":{"url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/comments/239628455","html_url":"https://github.com/sebastianbergmann/phpunit/issues/2174#issuecomment-239628455","issue_url":"https://api.github.com/repos/sebastianbergmann/phpunit/issues/2174","id":239628455,"user":{"login":"Lewiscowles1986","id":2605791,"avatar_url":"https://avatars.githubusercontent.com/u/2605791?v=3","gravatar_id":"","url":"https://api.github.com/users/Lewiscowles1986","html_url":"https://github.com/Lewiscowles1986","followers_url":"https://api.github.com/users/Lewiscowles1986/followers","following_url":"https://api.github.com/users/Lewiscowles1986/following{/other_user}","gists_url":"https://api.github.com/users/Lewiscowles1986/gists{/gist_id}","starred_url":"https://api.github.com/users/Lewiscowles1986/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lewiscowles1986/subscriptions","organizations_url":"https://api.github.com/users/Lewiscowles1986/orgs","repos_url":"https://api.github.com/users/Lewiscowles1986/repos","events_url":"https://api.github.com/users/Lewiscowles1986/events{/privacy}","received_events_url":"https://api.github.com/users/Lewiscowles1986/received_events","type":"User","site_admin":false},"created_at":"2016-08-13T16:10:03Z","updated_at":"2016-08-13T16:10:03Z","body":"would it be advisable to not `composer global require phpunit/phpunit`?"}}
{"actor":{"display_login":"Lewiscowles1986"}}