How to handle internationalization in cakephp 3 when doing unit testing ?
In my case I need to do assertResponseContains('Tilføj')
which contains 'ø' character and for some reason phpunit cant read it properly, therefore the test fails even though the response contains the given word. Any suggestions ? .
4
votes
Are you sure your files are all encoded properly, using UTF8? Then it should match just fine afaik.
– mark
Yes its all set properly.
– radioaktiv