PHPSpec2\Matcher\ObjectStateMatcher::getFailureExceptionFor PHP Method

getFailureExceptionFor() private method

private getFailureExceptionFor ( $callable, $expectedBool, $result )
    private function getFailureExceptionFor($callable, $expectedBool, $result)
    {
        return new FailureException(sprintf("Expected %s to return %s, but got %s.", $this->presenter->presentValue($callable), $this->presenter->presentValue($expectedBool), $this->presenter->presentValue($result)));
    }