Documentation

NumericComparator extends ScalarComparator
in package

FinalYes

Compares scalar or NULL values for equality.

Table of Contents

Properties

$factory  : Factory

Methods

accepts()  : bool
assertEquals()  : void
setFactory()  : void
factory()  : Factory
isInfinite()  : bool
isNan()  : bool

Properties

Methods

accepts()

public accepts(mixed $expected, mixed $actual) : bool
Parameters
$expected : mixed
$actual : mixed
Return values
bool

assertEquals()

public assertEquals(mixed $expected, mixed $actual[, float $delta = 0.0 ][, bool $canonicalize = false ][, bool $ignoreCase = false ]) : void
Parameters
$expected : mixed
$actual : mixed
$delta : float = 0.0
$canonicalize : bool = false
$ignoreCase : bool = false
Tags
throws
ComparisonFailure

isInfinite()

private isInfinite(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

isNan()

private isNan(mixed $value) : bool
Parameters
$value : mixed
Return values
bool

        
On this page

Search results