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 ToBeInteger

Verify whether the value is integer type.

$matcher = new ToBeInteger();
$matcher->match(1); //return true

$matcher->match(1.1); //return false
expect\matcher\ToBeInteger implements expect\matcher\ReportableMatcher uses expect\matcher\TypeMatcherDelegatable
Final
Namespace: expect\matcher
Copyright: Noritaka Horio holy.shared.design@gmail.com
Author: Noritaka Horio holy.shared.design@gmail.com
Located at matcher/ToBeInteger.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\TypeMatcherDelegatable
match(), reportFailed(), reportNegativeFailed()
Expect API documentation generated by ApiGen