예제 #1
0
파일: PhakeTest.php 프로젝트: kore/Phake
 /**
  * Tests that resetting a mock clears the stubber
  */
 public function testResettingStaticStubMapper()
 {
     $mock = Phake::mock('PhakeTest_StaticInterface');
     Phake::whenStatic($mock)->staticMethod()->thenReturn(42);
     $this->assertEquals(42, $mock::staticMethod());
     Phake::resetStatic($mock);
     $this->assertNull($mock::staticMethod());
 }