public function setUp() { $this->setTestFixturePath(__CLASS__, $this->getName()); $this->setHttpFixtures($this->getHttpFixtures($this->getFixturesDataPath() . '/HttpResponses')); $this->wrapper = $this->getNewCssValidatorWrapper(); $this->wrapper->createConfiguration(array('url-to-validate' => 'http://example.com/', 'http-auth' => array('user' => 'example', 'password' => 'password'), 'http-client' => $this->getHttpClient())); $this->wrapper->getConfiguration()->setCssValidatorJarPath('/home/jon/tools/css-validator/2002/css-validator/css-validator.jar'); $this->wrapper->enableDeferToParentIfNoRawOutput(); }
public function setUp() { $this->setTestFixturePath(__CLASS__); $this->setHttpFixtures($this->getHttpFixtures($this->getFixturesDataPath() . '/HttpResponses')); $configuration = new Configuration(); $configuration->setUrlToValidate('http://example.com/'); $configuration->setHttpClient($this->getHttpClient()); $this->wrapper = $this->getNewCssValidatorWrapper(); $this->wrapper->setConfiguration($configuration); $this->wrapper->enableDeferToParentIfNoRawOutput(); $this->wrapper->setCssValidatorRawOutput($this->getFixture('no-messages.txt')); }
public function setUp() { $this->setTestFixturePath(__CLASS__); $this->setHttpFixtures($this->getHttpFixtures($this->getFixturesDataPath($this->getName()) . '/HttpResponses')); $configuration = new Configuration(); $configuration->setUrlToValidate('http://grantammons.me/'); $configuration->setHttpClient($this->getHttpClient()); $configuration->setContentToValidate(file_get_contents($this->getFixturesDataPath() . '/WebResourceContent/rootWebResource.html')); $this->wrapper = $this->getNewCssValidatorWrapper(); $this->wrapper->setConfiguration($configuration); $this->wrapper->setCssValidatorRawOutput($this->getFixture('no-messages.txt')); $this->wrapper->enableDeferToParentIfNoRawOutput(); }