public function setUp()
 {
     if (count($this->getHttpFixtures())) {
         $this->getHttpClient()->getEmitter()->attach(new HttpMockSubscriber($this->getHttpFixtures()));
     }
     $this->preConstructHealthChecker();
     $this->urlHealthChecker = new UrlHealthChecker();
     $this->urlHealthChecker->getConfiguration()->setHttpClient($this->getHttpClient());
     $this->urlHealthChecker->getConfiguration()->disableRetryOnBadResponse();
     $this->urlHealthChecker->getConfiguration()->setHttpMethodList(array('GET'));
     $this->preCall();
     $this->linkState = $this->urlHealthChecker->check($this->getRequestUrl());
 }
 /**
  * @return UrlHealthChecker
  */
 public function getUrlHealthChecker()
 {
     if (is_null($this->urlHealthChecker)) {
         $this->urlHealthChecker = new UrlHealthChecker();
         $this->urlHealthChecker->getConfiguration()->setHttpClient($this->getConfiguration()->getHttpClient());
     }
     return $this->urlHealthChecker;
 }