lithium\test\Unit::assertInstanceOf PHP Метод

assertInstanceOf() публичный Метод

$this->assertInstanceOf('stdClass', new stdClass); // succeeds $this->assertInstanceOf('ReflectionClass', new stdClass); // fails
См. также: lithium\test\Unit::assert()
public assertInstanceOf ( string $expected, object $actual, string | boolean $message = '{:message}' ) : boolean
$expected string Fully namespaced expected class.
$actual object Object you are testing.
$message string | boolean
Результат boolean `true` if the assertion succeeded, `false` otherwise.
    public function assertInstanceOf($expected, $actual, $message = '{:message}')
    {
        return $this->assert(is_a($actual, $expected), $message, array('expected' => $expected, 'result' => get_class($actual)));
    }