Skip to content

Commit 1075a88

Browse files
committed
fix(phpunit) Avoid calling the parent beforeTestMethod
… because it does not exist :-).
1 parent 80a3982 commit 1075a88

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

classes/test.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,6 @@ public function beforeTestMethod($testMethod)
343343
// Based on the comment in `self::getTestedClassName`, it is
344344
// required to re-adjust the mock engines for constants and
345345
// functions.
346-
$out = parent::beforeTestMethod($testMethod);
347346
$testedClassName = self::getTestedClassNameFromTestClass(
348347
$this->getClass(),
349348
$this->getTestNamespace()
@@ -356,8 +355,6 @@ public function beforeTestMethod($testMethod)
356355

357356
$this->getPhpFunctionMocker()->setDefaultNamespace($testedNamespace);
358357
$this->getPhpConstantMocker()->setDefaultNamespace($testedNamespace);
359-
360-
return $out;
361358
}
362359
}
363360
}

0 commit comments

Comments
 (0)