Overview

Namespaces

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

Classes

  • Dictionary
  • Expect
  • FailedMessage
  • MatcherDictionary
  • MatcherEvaluator
  • MatcherPackage
  • Result

Interfaces

  • Configurable
  • Configuration
  • Configurator
  • Context
  • ContextFactory
  • Evaluator
  • Matcher
  • MatcherContainer
  • MatcherFactory
  • MatcherRegistry
  • Message
  • PackageRegistrar
  • RegisterablePackage
  • ResultReporter

Traits

  • MatcherLookupTable

Functions

  • expect
  • Overview
  • Namespace
  • Class

Class MatcherEvaluator

Evaluate the matcher.

expect\MatcherEvaluator implements expect\Evaluator
Namespace: expect
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at MatcherEvaluator.php
Methods summary
public
# __construct( expect\matcher\ReportableMatcher $matcher )

Create a matcher evaluator.

Create a matcher evaluator.

Parameters

$matcher
The use matcher
public expect\MatcherEvaluator
# negated( )

Change state to nagative evaluation.

Change state to nagative evaluation.

Returns

expect\MatcherEvaluator
public expect\Result
# evaluate( mixed $actual )

Evaluate the value of actual.

Evaluate the value of actual.

Parameters

$actual
value of actual

Returns

expect\Result
public static expect\Evaluator
# fromMatcher( expect\matcher\ReportableMatcher $matcher )

Create the evaluator from matcher.

Create the evaluator from matcher.

Parameters

$matcher

Returns

expect\Evaluator

Implementation of

expect\Evaluator::fromMatcher()
Magic methods summary
public boolean
# toEqual( )

Returns

boolean
public boolean
# toBe( )

Returns

boolean
public boolean
# toBeTrue( )

Returns

boolean
public boolean
# toBeTruthy( )

Returns

boolean
public boolean
# toBeFalse( )

Returns

boolean
public boolean
# toBeFalsy( )

Returns

boolean
public boolean
# toBeNull( )

Returns

boolean
public boolean
# toBeA( )

Returns

boolean
public boolean
# toBeAn( )

Returns

boolean
public boolean
# toBeString( )

Returns

boolean
public boolean
# toBeInteger( )

Returns

boolean
public boolean
# toBeFloat( )

Returns

boolean
public boolean
# toBeBoolean( )

Returns

boolean
public boolean
# toBeAnInstanceOf( )

Returns

boolean
public boolean
# toThrow( )

Returns

boolean
public boolean
# toHaveLength( )

Returns

boolean
public boolean
# toBeEmpty( )

Returns

boolean
public boolean
# toPrint( )

Returns

boolean
public boolean
# toMatch( )

Returns

boolean
public boolean
# toStartWith( )

Returns

boolean
public boolean
# toEndWith( )

Returns

boolean
public boolean
# toContain( )

Returns

boolean
public boolean
# toHaveKey( )

Returns

boolean
public boolean
# toBeGreaterThan( )

Returns

boolean
public boolean
# toBeLessThan( )

Returns

boolean
public boolean
# toBeAbove( )

Returns

boolean
public boolean
# toBeBelow( )

Returns

boolean
public boolean
# toBeWithin( integer $to )

Parameters

$to

Returns

boolean
Expect API documentation generated by ApiGen