Fix order of params to assertEquals

Signed-off-by: Michal Čihař <michal@cihar.com>
Fix expected message to match code

Signed-off-by: Michal Čihař <michal@cihar.com>
Fixed ob_start/eval problems in phpunit

When running in phpunit, the eval can raise exception, so treat it same
as it would be output returned by the eval. Without catching it, output
buffering gets one more level of nesting leading to occassional
timeouts in Travis-CI.

Signed-off-by: Michal Čihař <michal@cihar.com>