Add apc extension checking for phpunit
add conditions to .travis.yml