PHPUnit_Framework_TestCase::assertEmpty PHP Method

assertEmpty() public method

public assertEmpty ( $v )
    public function assertEmpty($v)
    {
        if (!empty($v)) {
            throw new Exception('not empty');
        }
    }

Usage Example

Exemplo n.º 1
0
 protected function doDelete(RecordInterface $record, Version $version)
 {
     $this->testCase->assertEquals(8, $this->pathParameters->getProperty('fooId'));
     $this->testCase->assertEmpty($this->pathParameters->getProperty('bar'));
     $this->testCase->assertEquals(1, $record->getId());
     return array('success' => true, 'message' => 'You have successful delete a record');
 }
All Usage Examples Of PHPUnit_Framework_TestCase::assertEmpty