Esempio n. 1
0
 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();
 }
Esempio n. 2
0
 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);
 }
Esempio n. 3
0
 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);
 }