You are here

public function Framework_ConstraintTest::resources in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php \Framework_ConstraintTest::resources()

File

vendor/phpunit/phpunit/tests/Framework/ConstraintTest.php, line 1358

Class

Framework_ConstraintTest
@since Class available since Release 3.0.0

Code

public function resources() {
  $fh = fopen(__FILE__, 'r');
  fclose($fh);
  return array(
    'open resource' => array(
      fopen(__FILE__, 'r'),
    ),
    'closed resource' => array(
      $fh,
    ),
  );
}