blob: 922b9d877c5f64aa57d1a239b7e976b9deb83eef (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
<?php
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
require_once 'PHPUnit/Extensions/Selenium2TestCase.php';
class PradoGenericSeleniumTest extends PHPUnit_Extensions_SeleniumTestCase
{
static $browser='*googlechrome';
static $baseurl='http://127.0.0.1/prado-3.2/tests/FunctionalTests/';
protected function setUp()
{
$this->setBrowser(static::$browser);
$this->setBrowserUrl(static::$baseurl);
}
protected function tearDown()
{
}
}
// TODO: stub
class PradoGenericSelenium2Test extends PHPUnit_Extensions_Selenium2TestCase
{
static $browser='chrome';
static $baseurl='http://127.0.0.1/prado-3.2/tests/FunctionalTests/';
protected function setUp()
{
$this->setBrowser(static::$browser);
$this->setBrowserUrl(static::$baseurl);
}
protected function open($url)
{
$this->setBrowserUrl(static::$baseurl.$url);
}
protected function tearDown()
{
}
}
|