You are here

public static function PHPUnit_Framework_Assert::isType in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/Assert.php \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

6 calls to PHPUnit_Framework_Assert::isType()
Framework_AssertTest::testAssertThatIsType in vendor/phpunit/phpunit/tests/Framework/AssertTest.php
@covers PHPUnit_Framework_Assert::assertThat @covers PHPUnit_Framework_Assert::isType
Framework_ConstraintTest::testConstraintIsNotType in 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 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::testConstraintIsResourceTypeEvaluatesCorrectlyWithResources in vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php
@dataProvider resources @covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Assert::isType
Framework_ConstraintTest::testConstraintIsType in 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

... See full list

File

vendor/phpunit/phpunit/src/Framework/Assert.php, line 2711

Class

PHPUnit_Framework_Assert
A set of assert methods.

Code

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