PHPUnit_Framework_Assert::assertNotNull PHP Method

assertNotNull() public static method

Asserts that a variable is not null.
public static assertNotNull ( mixed $actual, string $message = '' )
$actual mixed
$message string
    public static function assertNotNull($actual, $message = '')
    {
        static::assertThat($actual, static::logicalNot(static::isNull()), $message);
    }

Usage Example

 protected function assertCommonCacheCollectedData(CacheCollectedData $expected, CacheCollectedData $actual)
 {
     Assert::assertEquals($expected->getData(), $actual->getData());
     Assert::assertNotNull($actual->getDuration());
     Assert::assertEquals($expected->getProviderId(), $actual->getProviderId());
     Assert::assertEquals($expected->getType(), $actual->getType());
 }
All Usage Examples Of PHPUnit_Framework_Assert::assertNotNull
PHPUnit_Framework_Assert