Move test case methods into a trait
Increase PHP requirement to 5.4 and update README