PHPUnit_Framework_Assert::assertNan PHP Method

assertNan() public static method

Asserts that a variable is nan.
public static assertNan ( mixed $actual, string $message = '' )
$actual mixed
$message string
    public static function assertNan($actual, $message = '')
    {
        static::assertThat($actual, static::isNan(), $message);
    }

Usage Example

コード例 #1
0
ファイル: Expect.php プロジェクト: jpkleemans/phpunit-expect
 /**
  * Expect that a variable is nan.
  *
  * @param string $message
  *
  * @return Expect
  */
 public function toBeNan($message = '')
 {
     Assert::assertNan($this->value, $message);
     return $this;
 }
All Usage Examples Of PHPUnit_Framework_Assert::assertNan
PHPUnit_Framework_Assert