the expected value is always on the left side in assertions (the phpunit message will be confusing if this fails). and it should be $foundUser we compare. i will merge and fix in master, its just cosmetics.