mageekguy\atoum\runner::usageOfUndefinedMethodInMockAreAllowed PHP Method

usageOfUndefinedMethodInMockAreAllowed() public method

    public function usageOfUndefinedMethodInMockAreAllowed()
    {
        return $this->disallowUsageOfUndefinedMethodInMock === false;
    }

Usage Example

Exemplo n.º 1
0
 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();
 }
runner