private function describeFailure(Predicate $predicate, string $description = null): string
    {
        $predicateText = (string) $predicate;
        $failureDescription = sprintf(
                'Failed asserting that %s %s%s',
                $predicate->describeValue($this->exporter, $this->value),
                $predicateText,
                strpos($predicateText, "\n") !== false ? '' : '.'
        );

        if (!empty($description)) {
            $failureDescription .= "\n" . $description;
        }

        return $failureDescription;
    }
private function describeFailure(Predicate $predicate, string $description = null): string
    {
        $predicateText = (string) $predicate;
        $failureDescription = sprintf(
                'Failed asserting that %s %s%s',
                $predicate->describeValue($this->exporter, $this->value),
                $predicateText,
                strpos($predicateText, "\n") !== false ? '' : '.'
        );

        if (!empty($description)) {
            $failureDescription .= "\n" . $description;
        }

        return $failureDescription;
    }
private function describeFailure ( Predicate $ predicate , string $ description = null ) : string { $ predicateText = ( string ) $ predicate ; $ failureDescription = sprintf ( 'Failed asserting that %s %s%s' , $ predicate -> describeValue ( $ this -> exporter , $ this -> value ) , $ predicateText , strpos ( $ predicateText , "\n" ) !== false ? '' : '.' ) ; if ( ! empty ( $ description ) ) { $ failureDescription .= "\n" . $ description ; } return $ failureDescription ; }
creates failure description when value failed the test with given predicate

@param   \bovigo\assert\predicate\Predicate  $predicate    predicate that failed
@param   string                              $description  additional description for failure message
@return  string
creates failure description when value failed the test with given predicate