/** * Asserts that a variable is not of a given type. * * @param string $expected * @param mixed $actual * @param string $message * @since Method available since Release 3.5.0 */ function assertNotInstanceOf($expected, $actual, $message = '') { return PHPUnit_Framework_Assert::assertNotInstanceOf($expected, $actual, $message); }
public function toBeInstanceOf($class) { if ($this->negate) { a::assertNotInstanceOf($class, $this->actual); } else { a::assertInstanceOf($class, $this->actual); } }
public function isNotInstanceOf($class) { a::assertNotInstanceOf($class, $this->actual, $this->description); }
/** * Expect that a variable is not of a given type. * * @param string $expected * @param string $message * * @return Expect */ public function notToBeInstanceOf($expected, $message = '') { Assert::assertNotInstanceOf($expected, $this->value, $message); return $this; }
public function isNotInstanceOf($class) { Assert::assertNotInstanceOf($class, $this->actual, $this->description); return $this; }
/** * @param $class * @param $actual * @param $description */ protected function assertNotInstanceOf($class, $actual, $description) { \PHPUnit_Framework_Assert::assertNotInstanceOf($class, $actual, $description); }