public static function PHPUnit_Framework_Assert::assertInternalType

Asserts that a variable is of a given type.

@since Method available since Release 3.5.0

Parameters

string $expected:

mixed $actual:

string $message:

2 calls to PHPUnit_Framework_Assert::assertInternalType()
PHPUnit_Framework_Assert::assertAttributeInternalType in drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php
Asserts that an attribute is of a given type.
PHP_TimerTest::testStartStop in drupal/core/vendor/phpunit/php-timer/Tests/TimerTest.php
@covers PHP_Timer::start @covers PHP_Timer::stop

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Framework/Assert.php, line 1259

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function assertInternalType($expected, $actual, $message = '') {
  if (is_string($expected)) {
    $constraint = new PHPUnit_Framework_Constraint_IsType($expected);
  }
  else {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
  }
  self::assertThat($actual, $constraint, $message);
}