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