assertNan() public static method

Asserts that a variable is nan.
public static assertNan ( mixed $actual, string $message = '' )
$actual mixed
$message string
Ejemplo n.º 1
0
 /**
  * Expect that a variable is nan.
  *
  * @param string $message
  *
  * @return Expect
  */
 public function toBeNan($message = '')
 {
     Assert::assertNan($this->value, $message);
     return $this;
 }
Ejemplo n.º 2
0
 public function isNan()
 {
     Assert::assertNan($this->actual, $this->description);
     return $this;
 }