public static function PHPUnit_Framework_Assert::assertNotInternalType in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \PHPUnit_Framework_Assert::assertNotInternalType()
Asserts that a variable is not of a given type.
@since Method available since Release 3.5.0
Parameters
string $expected:
mixed $actual:
string $message:
3 calls to PHPUnit_Framework_Assert::assertNotInternalType()
- Framework_AssertTest::testAssertNotInternalType in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertNotInternalType
- Framework_AssertTest::testAssertNotInternalTypeThrowsExceptionForInvalidArgument in vendor/
phpunit/ phpunit/ tests/ Framework/ AssertTest.php - @covers PHPUnit_Framework_Assert::assertNotInternalType @expectedException PHPUnit_Framework_Exception
- PHPUnit_Framework_Assert::assertAttributeNotInternalType in vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php - Asserts that an attribute is of a given type.
File
- vendor/
phpunit/ phpunit/ src/ Framework/ Assert.php, line 1361
Class
- PHPUnit_Framework_Assert
- A set of assert methods.
Code
public static function assertNotInternalType($expected, $actual, $message = '') {
if (!is_string($expected)) {
throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
}
$constraint = new PHPUnit_Framework_Constraint_Not(new PHPUnit_Framework_Constraint_IsType($expected));
self::assertThat($actual, $constraint, $message);
}