private function Framework_MockObjectTest::resetMockObjects in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit-mock-objects/tests/MockObjectTest.php \Framework_MockObjectTest::resetMockObjects()
6 calls to Framework_MockObjectTest::resetMockObjects()
- Framework_MockObjectTest::testVerificationOfMethodNameFailsWithoutParameters in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - Framework_MockObjectTest::testVerificationOfMethodNameFailsWithParameters in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - Framework_MockObjectTest::testVerificationOfMethodNameFailsWithWrongParameters in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - Framework_MockObjectTest::testVerificationOfNeverFailsWithAnyParameters in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php - Framework_MockObjectTest::testVerificationOfNeverFailsWithEmptyParameters in vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php
File
- vendor/
phpunit/ phpunit-mock-objects/ tests/ MockObjectTest.php, line 834
Class
- Framework_MockObjectTest
- @since Class available since Release 3.0.0
Code
private function resetMockObjects() {
$refl = new ReflectionObject($this);
$refl = $refl
->getParentClass();
$prop = $refl
->getProperty('mockObjects');
$prop
->setAccessible(true);
$prop
->setValue($this, array());
}