Asserts that a variable is not of a given type.
@since Method available since Release 3.5.0
string $expected:
mixed $actual:
string $message:
public static function assertNotInternalType($expected, $actual, $message = '') {
if (is_string($expected)) {
$constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_IsType($expected));
}
else {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
}
self::assertThat($actual, $constraint, $message);
}