public function PHPUnit_Extensions_PhptTestCase::__construct

Constructs a test case with the given filename.

Parameters

string $filename:

array $options:

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Extensions/PhptTestCase.php, line 85

Class

PHPUnit_Extensions_PhptTestCase
Wrapper to run .phpt test cases.

Code

public function __construct($filename, array $options = array()) {
  if (!is_string($filename)) {
    throw PHPUnit_Util_InvalidArgumentHelper::factory(1, 'string');
  }
  if (!is_file($filename)) {
    throw new PHPUnit_Framework_Exception(sprintf('File "%s" does not exist.', $filename));
  }
  $this->filename = $filename;
  $this->options = $options;
}