/**
  * Configures all tests.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     if (!$this->browserConfigurationClass) {
         $this->browserConfigurationClass = 'aik099\\PHPUnit\\BrowserConfiguration\\BrowserConfiguration';
     }
     $this->setup = array('host' => self::HOST, 'port' => self::PORT, 'timeout' => 500, 'browserName' => 'safari', 'desiredCapabilities' => array('platform' => 'Windows 7', 'version' => 10), 'baseUrl' => 'http://other-host', 'sessionStrategy' => ISessionStrategyFactory::TYPE_SHARED, 'driver' => 'zombie', 'driverOptions' => array('customSetting' => 'customValue'));
     $this->driverFactoryRegistry = $this->createDriverFactoryRegistry();
     $this->browser = $this->createBrowserConfiguration(array(), in_array($this->getName(false), $this->testsRequireSubscriber), $this->mockBrowserMethods);
 }
예제 #2
0
 /**
  * Configures all tests.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->browserConfigurationFactory = m::mock('aik099\\PHPUnit\\BrowserConfiguration\\IBrowserConfigurationFactory');
 }
 /**
  * Configures the tests.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_factory = new BrowserConfigurationFactory();
     $this->_driverFactoryRegistry = $this->createDriverFactoryRegistry();
 }
예제 #4
0
 /**
  * Creates suite for testing.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_suite = new BrowserTestSuite();
     $this->_suite->setEventDispatcher($this->eventDispatcher);
 }
 /**
  * Configures the tests.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->_factory = new BrowserConfigurationFactory();
 }
 /**
  * Configures all tests.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->setup = array('host' => self::HOST, 'port' => self::PORT, 'timeout' => 500, 'browserName' => 'safari', 'desiredCapabilities' => array('platform' => 'Windows 7', 'version' => 10), 'baseUrl' => 'http://other-host', 'sessionStrategy' => ISessionStrategyFactory::TYPE_SHARED);
     $this->browser = $this->createBrowserConfiguration(array(), in_array($this->getName(false), $this->testsRequireSubscriber));
 }