lithium\test\Unit::assertNotEmpty()

public method

Assert that given result is not empty.

$this->assertNotEmpty(1); // succeeds
$this->assertNotEmpty([]); // fails

Parameters

  • string $actual
  • string|boolean $message

Returns

boolean

true if the assertion succeeded, false otherwise.

Source

	public function assertNotEmpty($actual, $message = '{:message}') {
		return $this->assert(!empty($actual), $message, [
			'expected' => $actual,
			'result' => !empty($actual)
		]);
	}