Ejemplo n.º 1
0
 public function testGetUrlBuilderFactory()
 {
     /* @var IUrlBuilderFactory $url_builder_factory */
     $url_builder_factory = m::mock(self::URL_BUILDER_FACTORY_INTERFACE);
     $this->realFactory->setUrlBuilderFactory($url_builder_factory);
     $this->assertEquals($url_builder_factory, $this->realFactory->getUrlBuilderFactory());
 }
Ejemplo n.º 2
0
 /**
  * Creates BEMPageFactory instance.
  *
  * @param Session       $session        Mink session.
  * @param IConfig       $config         Page factory configuration.
  * @param LocatorHelper $locator_helper Locator helper.
  */
 public function __construct(Session $session, IConfig $config = null, LocatorHelper $locator_helper = null)
 {
     $this->annotationRegistry['bem'] = '\\aik099\\QATools\\BEM\\Annotation\\BEMAnnotation';
     parent::__construct($session, $config);
     $this->_locatorHelper = isset($locator_helper) ? $locator_helper : new LocatorHelper();
 }
 /**
  * Creates TypifiedPageFactory instance.
  *
  * @param Session $session Mink session.
  * @param IConfig $config  Page factory configuration..
  */
 public function __construct(Session $session, IConfig $config = null)
 {
     $this->annotationRegistry['element-name'] = '\\aik099\\QATools\\HtmlElements\\Annotation\\ElementNameAnnotation';
     parent::__construct($session, $config);
 }