2 class SeleniumTestCase
extends PHPUnit_Framework_TestCase
{ // PHPUnit_Extensions_SeleniumTestCase
5 public function setUp() {
7 $this->selenium
= Selenium
::getInstance();
10 public function tearDown() {
14 public function __call( $method, $args ) {
15 return call_user_func_array( array( $this->selenium
, $method ), $args );
18 public function assertSeleniumAttributeEquals( $attribute, $value ) {
19 $attr = $this->getAttribute( $attribute );
20 $this->assertEquals( $attr, $value );
23 public function assertSeleniumHTMLContains( $element, $text ) {
24 $innerHTML = $this->getText( $element );
26 $this->assertRegExp( "/$text/", $innerHTML );