Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

fixed showing error messages #8

Merged
merged 1 commit into from
Mar 6, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/Constraint/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
class Page extends \PHPUnit\Framework\Constraint\Constraint
{
protected $uri;
private $string;

public function __construct($string, $uri = '')
{
Expand Down Expand Up @@ -45,11 +46,9 @@ private function normalizeText($text)
*/
public function toString()
{
$string = mb_strtolower($this->string, 'UTF-8');

return sprintf(
'contains "%s"',
$string
$this->string
);
}

Expand Down