Пример #1
0
 public function setUp()
 {
     $urlFinderFactory = new UrlFinderFactory();
     $hostnameFinderFactory = new HostnameFinderFactory();
     $urlFinder = $urlFinderFactory->create();
     $hostnameFinder = $hostnameFinderFactory->create();
     $this->finder = new Entity(array($urlFinder, $hostnameFinder));
 }
Пример #2
0
 /**
  * Initializes context.
  *
  * Every scenario gets its own context instance.
  * You can also pass arbitrary arguments to the
  * context constructor through behat.yml.
  */
 public function __construct()
 {
     $emailAddressFinderFactory = new EmailAddressFinderFactory();
     $this->emailAddressFinder = $emailAddressFinderFactory->create();
     $numberFinderFactory = new NumberFinderFactory();
     $this->numberFinder = $numberFinderFactory->create();
     $hostnameFinderFactory = new HostnameFinderFactory();
     $this->hostnameFinder = $hostnameFinderFactory->create();
     $abbreviationFinderFactory = new AbbreviationFinderFactory();
     $this->abbreviationFinder = $abbreviationFinderFactory->create();
     $urlFinderFactory = new UrlFinderFactory();
     $this->urlFinder = $urlFinderFactory->create();
 }
Пример #3
0
 public function __construct(array $abbreviations = array())
 {
     $factory = new UrlFinderFactory();
     $this->finder = $factory->create();
 }