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-client' => $this->getHttpClient()));
 }
 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 testSetContentToValidate()
 {
     $content = 'foo';
     $wrapper = new Wrapper();
     $wrapper->createConfiguration(array('url-to-validate' => 'http://example.com/', 'content-to-validate' => $content));
     $this->assertEquals($content, $wrapper->getConfiguration()->getContentToValidate());
 }