sellingsource/ApiTest — pull request #1 by trentpack (2014-12-12 03:04:58+00:00)
Title: Trent's Submission

Here's be submission for you're review. It took me a lot longer than four hours. I spent about 3 hours just setting up the tooling (linux, php, composer, phpStorm, phpunit, and behat). I feel like I learned a ton today. I hope you still might consider me for the position.

I've got 7 out of 9 of the scenarios passing for FuelStations. I don't understand where you were going with the reflection.

I think in TestMe.php you meant to use preg_match instead of preg_grep. preg_grep doesn't pass by reference on the second param; therefore, $values will always be null, cause array_shift to throw an exception. I left the code alone because I wasn't asked to modify the TestMe class, and I maybe there is something I'm missing.

Thanks,
Trent