You are here

public function PHPUnit_Framework_Constraint_StringEndsWith::__construct in Zircon Profile 8.0

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

Parameters

string $suffix:

Overrides PHPUnit_Framework_Constraint::__construct

File

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

Class

PHPUnit_Framework_Constraint_StringEndsWith
Constraint that asserts that the string it is evaluated for ends with a given suffix.

Code

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