You are here

public function PHPUnit_Framework_Constraint_StringStartsWith::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php \PHPUnit_Framework_Constraint_StringStartsWith::__construct()

Parameters

string $prefix:

Overrides PHPUnit_Framework_Constraint::__construct

File

vendor/phpunit/phpunit/src/Framework/Constraint/StringStartsWith.php, line 27

Class

PHPUnit_Framework_Constraint_StringStartsWith
Constraint that asserts that the string it is evaluated for begins with a given prefix.

Code

public function __construct($prefix) {
  parent::__construct();
  $this->prefix = $prefix;
}