for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PHPKitchen\CodeSpecs\Expectation\Matcher;
/**
* NumberMatcher is designed to check given number matches expectation.
*
* @author Dima Kolodko <[email protected]>
*/
class NumberMatcher extends ValueMatcher {
* @return $this
public function isFinite(): self {
$this->startStep('is finite')
->assertFinite();
return $this;
}
public function isInfinite(): self {
$this->startStep('is infinite')
->assertInfinite();
public function isNan(): self {
$this->startStep('is nan')
->assertNan();