added first draft of a PhpExtensionCheck

Added some more tests for the PhpSettingCheck as well.