public static function PHPUnit_Framework_Assert::isType

Returns a PHPUnit_Framework_Constraint_IsType matcher object.

@since Method available since Release 3.0.0

Parameters

string $type:

Return value

PHPUnit_Framework_Constraint_IsType

5 calls to PHPUnit_Framework_Assert::isType()
Framework_AssertTest::testAssertThatIsType in drupal/core/vendor/phpunit/phpunit/Tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isType
Framework_ConstraintTest::testConstraintIsNotType in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::isType @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsNotType2 in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Constraint_Not @covers PHPUnit_Framework_Assert::isType @covers PHPUnit_Framework_Assert::logicalNot @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsType in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Assert::isType @covers PHPUnit_Framework_Constraint::count @covers PHPUnit_Framework_TestFailure::exceptionToString
Framework_ConstraintTest::testConstraintIsType2 in drupal/core/vendor/phpunit/phpunit/Tests/Framework/ConstraintTest.php
@covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Assert::isType @covers PHPUnit_Framework_TestFailure::exceptionToString

File

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

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

public static function isType($type) {
  return new PHPUnit_Framework_Constraint_IsType($type);
}