public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$driver = new Driver_Phantomjs(); self::$driver->base_url('https://85b5d31b11244c8d6302-fabb5009fe9cc97c5f42aa7fac8fcd02.ssl.cf3.rackcdn.com'); self::$driver->visit('/remote-form.html'); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::$driver = new Driver_Selenium(); self::$driver->base_url('http://6ca1671dbfe9477b14ce-fabb5009fe9cc97c5f42aa7fac8fcd02.r26.cf3.rackcdn.com'); self::$driver->visit('/remote-form.html'); }
public function setUp() { parent::setUp(); $driver = $this->getMockBuilder('Openbuildings\\Spiderling\\Driver_Simple')->setMethods(array('get', 'post'))->getMock(); $html_content = file_get_contents(TESTVIEWS . 'index.html'); $driver->content($html_content); $this->page = $driver->page(); }
public function setUp() { parent::setUp(); $this->driver = $this->getMock('Openbuildings\\Spiderling\\Driver_Simple', array('get', 'post', 'confirm', 'execute', 'screenshot', 'move_to', 'drop_files')); $this->driver->default_wait_time = 1; $html_content = file_get_contents(TESTVIEWS . 'index.html'); $this->driver->content($html_content); $this->node = new Node($this->driver); }
public function setUp() { parent::setUp(); $this->driver = new Driver_Simple(); $request_factory = $this->getMock('Openbuildings\\Spiderling\\Driver_Simple_RequestFactory_HTTP'); $this->driver->request_factory($request_factory); $html_content = file_get_contents(TESTVIEWS . 'form.html'); $this->driver->content($html_content); }