PHPUnit_Framework_Assert::assertNotTrue PHP Method

assertNotTrue() public static method

Asserts that a condition is not true.
public static assertNotTrue ( boolean $condition, string $message = '' )
$condition boolean
$message string
    public static function assertNotTrue($condition, $message = '')
    {
        static::assertThat($condition, static::logicalNot(static::isTrue()), $message);
    }

Usage Example

Example #1
0
 public function toBeTrue()
 {
     if ($this->negate) {
         a::assertNotTrue($this->actual);
     } else {
         a::assertTrue($this->actual);
     }
 }
All Usage Examples Of PHPUnit_Framework_Assert::assertNotTrue
PHPUnit_Framework_Assert