public function testAllowUsageOfUndefinedMethodInMock() { $this->if($runner = new testedClass())->then->object($runner->allowUsageOfUndefinedMethodInMock())->isIdenticalTo($runner)->boolean($runner->usageOfUndefinedMethodInMockAreAllowed())->isTrue()->object($runner->allowUsageOfUndefinedMethodInMock())->isIdenticalTo($runner)->boolean($runner->usageOfUndefinedMethodInMockAreAllowed())->isTrue()->if($runner->disallowUsageOfUndefinedMethodInMock())->then->object($runner->allowUsageOfUndefinedMethodInMock())->isIdenticalTo($runner)->boolean($runner->usageOfUndefinedMethodInMockAreAllowed())->isTrue(); }