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 ToBeEmpty

Verify the length of the value is 0.

$matcher = new ToBeEmpty(); $matcher->match(""); //return true

$matcher->match("fo"); //return false $matcher->match([ 1, 2 ]); //return false $matcher->match(new ArrayIterator([ 1, 2 ])); //return false

expect\matcher\ToBeEmpty implements expect\matcher\ReportableMatcher uses expect\matcher\LengthMatcherDelegatable
Final
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToBeEmpty.php
Methods summary
public
# __construct( )

Create a new matcher.

Create a new matcher.

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