lithium\test\Unit::assertNotEmpty()
Assert that given result is not empty.
$this->assertNotEmpty(1); // succeeds
$this->assertNotEmpty([]); // fails
Parameters
-
string
$actual
-
string|boolean
$message
Returns
booleantrue
if the assertion succeeded, false
otherwise.
Links
Source
public function assertNotEmpty($actual, $message = '{:message}') {
return $this->assert(!empty($actual), $message, [
'expected' => $actual,
'result' => !empty($actual)
]);
}