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

Commit 0c1c817

Browse files
authored
fixed showing error messages (#7)
1 parent 12809eb commit 0c1c817

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/Constraint/Page.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
class Page extends \PHPUnit\Framework\Constraint\Constraint
77
{
88
protected $uri;
9+
private $string;
910

1011
public function __construct($string, $uri = '')
1112
{
@@ -45,11 +46,9 @@ private function normalizeText($text)
4546
*/
4647
public function toString()
4748
{
48-
$string = mb_strtolower($this->string, 'UTF-8');
49-
5049
return sprintf(
5150
'contains "%s"',
52-
$string
51+
$this->string
5352
);
5453
}
5554

0 commit comments

Comments
 (0)