...

CloneableFinalInstantiable
ExtendsPHPUnit\Framework\Constraint\RegularExpression
PHPUnit\Framework\Constraint\Constraint
ImplementsCountable
PHPUnit\Framework\SelfDescribing
Methods
public __construct(string $string)
public PHPUnit\Framework\Constraint\Constraint::count() : int
 
Counts the number of constraint elements.

public PHPUnit\Framework\Constraint\Constraint::evaluate( $other, string $description = '', bool $returnResult = false)
 
Evaluates the constraint for parameter $other

If $returnResult is set to false (the default), an exception is thrown in case of a failure. null is returned otherwise.

If $returnResult is true, the result of the evaluation is returned as a boolean value instead: true in case of success, false in case of a failure.

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
public PHPUnit\Framework\Constraint\RegularExpression::toString() : string
 
Returns a string representation of the constraint.

Methods
protected additionalFailureDescription( $other) : string
protected PHPUnit\Framework\Constraint\Constraint::exporter() : SebastianBergmann\Exporter\Exporter
protected PHPUnit\Framework\Constraint\Constraint::fail( $other, $description, ?SebastianBergmann\Comparator\ComparisonFailure $comparisonFailure = NULL) : void
 
Throws an exception for the given compared value and test description

  • throws ExpectationFailedException
  • throws SebastianBergmann\RecursionContext\InvalidArgumentException
protected failureDescription( $other) : string
protected matches( $other) : bool
 
Evaluates the constraint for parameter $other. Returns true if the constraint is met, false otherwise.

    Properties
    private $string
     


    • var string
    Methods
    private convertNewlines( $text) : string
    private createPatternFromFormat(string $string) : string
    © 2020 Bruce Wells
    Search Namespaces \ Classes
    ConfigurationNumbers (0-9.) only