increased mockery version and added conditional running of tests on php version