PHPUnit_Framework_TestCase::assertFalse PHP Method

assertFalse() public method

public assertFalse ( $a )
    public function assertFalse($a)
    {
        if ($a) {
            throw new Exception('Not false');
        }
    }

Usage Example

 /**
  * @test
  */
 public function notContainsValue()
 {
     $collection = $this->getCollectionInstance(['fuu', 'bar']);
     parent::assertFalse($collection->contains('baz'));
     parent::setExpectedException(KeyIsNotDefinedException::class);
     $collection->get('baz');
 }
All Usage Examples Of PHPUnit_Framework_TestCase::assertFalse