public function Framework_ConstraintTest::testConstraintIsResourceTypeEvaluatesCorrectlyWithResources in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php \Framework_ConstraintTest::testConstraintIsResourceTypeEvaluatesCorrectlyWithResources()
@dataProvider resources @covers PHPUnit_Framework_Constraint_IsType @covers PHPUnit_Framework_Assert::isType
File
- vendor/
phpunit/ phpunit/ tests/ Framework/ ConstraintTest.php, line 1374
Class
- Framework_ConstraintTest
- @since Class available since Release 3.0.0
Code
public function testConstraintIsResourceTypeEvaluatesCorrectlyWithResources($resource) {
$constraint = PHPUnit_Framework_Assert::isType('resource');
$this
->assertTrue($constraint
->evaluate($resource, '', true));
@fclose($resource);
}