PHPUnit_Framework_Assert::assertGreaterThan PHP Method

assertGreaterThan() public static method

Asserts that a value is greater than another value.
public static assertGreaterThan ( mixed $expected, mixed $actual, string $message = '' )
$expected mixed
$actual mixed
$message string
    public static function assertGreaterThan($expected, $actual, $message = '')
    {
        static::assertThat($actual, static::greaterThan($expected), $message);
    }

Usage Example

 /**
  * @test
  */
 public function it_can_return_its_id()
 {
     $conn = $this->factory->createConnection('localhost');
     $channel = $this->factory->createChannel($conn);
     Assert::assertInternalType('integer', $channel->getChannelId());
     Assert::assertGreaterThan(0, $channel->getChannelId());
 }
All Usage Examples Of PHPUnit_Framework_Assert::assertGreaterThan
PHPUnit_Framework_Assert