I am testing my controller from Symfony2 using PHPUnit and class WebTestCase
return self::$client->request(
'POST', '/withdraw',
array("amount" => 130),
array(),array());
$this->assertEquals(
"You can withdraw up to £100.00.",
$crawler->filter("#error-notification")->text());
But I get this error:
Expected: "You can withdraw up to £100.00."
Actual: "You can withdraw up to £100.00."
The fact is that everything looks fine on the web page and in the source code, so I think that PHPUnit may have some difficulty getting the text as UTF8?
What am I missing?
source
share