PHP Hamcrest implementation