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 ToBe

Alias of ToEuqal.

$matcher = new ToBe(100); $matcher->match(100); //return true

$matcher = new ToBe(100); $matcher->match(99); //return false

expect\matcher\ToBe implements expect\matcher\ReportableMatcher uses expect\matcher\EqualMatcherDelegatable
Final
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
See: expect\matcher\ToEqual
Located at matcher/ToBe.php
Methods summary
public
# __construct( mixed $expected )

Create a new matcher.

Create a new matcher.

Parameters

$expected
expected value
Methods inherited from expect\matcher\ReportableMatcher
reportFailed(), reportNegativeFailed()
Methods inherited from expect\Matcher
match()
Methods used from expect\matcher\EqualMatcherDelegatable
match(), reportFailed(), reportNegativeFailed()
Expect API documentation generated by ApiGen