Overview

Namespaces

  • expect
    • config
    • configurator
    • context
    • factory
    • matcher
      • strategy
    • package
    • registry
    • reporter

Classes

  • PatternMatcher
  • ToBe
  • ToBeA
  • ToBeAbove
  • ToBeAn
  • ToBeAnInstanceOf
  • ToBeArray
  • ToBeBelow
  • ToBeBoolean
  • ToBeEmpty
  • ToBeFalse
  • ToBeFalsey
  • ToBeFloat
  • ToBeGreaterThan
  • ToBeInteger
  • ToBeLessThan
  • ToBeNull
  • ToBeString
  • ToBeTrue
  • ToBeTruthy
  • ToBeWithin
  • ToContain
  • ToEndWith
  • ToEqual
  • ToHaveKey
  • ToHaveLength
  • ToMatch
  • ToPrint
  • ToStartWith
  • ToThrow
  • TruthyMatcher

Interfaces

  • ReportableMatcher

Traits

  • EqualMatcherDelegatable
  • GreaterThanMatcherDelegatable
  • LengthMatcherDelegatable
  • LessThanMatcherDelegatable
  • TypeMatcherDelegatable
  • Overview
  • Namespace
  • Class

Class PatternMatcher

Class PatternMatcher.

expect\matcher\PatternMatcher implements expect\Matcher
Final
Namespace: expect\matcher
Located at matcher/PatternMatcher.php
Methods summary
public
# __construct( string $expected )

Parameters

$expected
String of a regular expression
public boolean
# match( mixed $actual )

Verify whether the value is consistent with what is expected. Returns true if the value matches the contents to be expected.

Verify whether the value is consistent with what is expected. Returns true if the value matches the contents to be expected.

Parameters

$actual
value of actual

Returns

boolean
results of evaluation

Implementation of

expect\Matcher::match()
Expect API documentation generated by ApiGen