You are here

private function Framework_MockObjectTest::resetMockObjects in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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

... See full list

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());
}