Commit 1cff0975 authored by alexpott's avatar alexpott

Issue #2443885 by Xano: DrupalStandardsListener causes errors when it cannot...

Issue #2443885 by Xano: DrupalStandardsListener causes errors when it cannot retrieve test results. Missing abstract keyword
parent 06d920a0
......@@ -55,7 +55,7 @@ protected function classExists($class) {
*/
public function checkValidCoversForTest(\PHPUnit_Framework_TestCase $test) {
// If we're generating a coverage report already, don't do anything here.
if ($test->getTestResultObject()->getCollectCodeCoverageInformation()) {
if ($test->getTestResultObject() && $test->getTestResultObject()->getCollectCodeCoverageInformation()) {
return;
}
// Gather our annotations.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment