Class SeleniumTestCase

Description

Standard unit test class for day to day testing of PHP code XP style. Adds some useful standard assertions.

Located in /extensions/selenium.php (line 6)

SimpleTestCase
   |
   --UnitTestCase
      |
      --SeleniumTestCase
Variable Summary
 mixed $browser
 mixed $browserUrl
 mixed $host
 mixed $port
 mixed $selenium
 mixed $timeout
Method Summary
 SeleniumTestCase __construct ([ $name = 'Selenium Test Case'])
 void setUp ()
 void tearDown ()
 void verifyText ( $text)
 void verifyTextNotPresent ( $text)
 void verifyTextPresent ( $text)
 void verifyTitle ( $pattern)
 void verifyValue ( $selector,  $value)
 void __call ( $method,  $arguments)
Variables
mixed $browser = '' (line 11)

Selenium instantiation variables

  • access: protected
mixed $browserUrl = '' (line 12)

Selenium instantiation variables

  • access: protected
mixed $host = 'localhost' (line 13)

Selenium instantiation variables

  • access: protected
mixed $newInstanceEachTest = true (line 19)
  • access: protected
mixed $port = '4444' (line 14)

Selenium instantiation variables

  • access: protected
mixed $selenium = null (line 18)
  • access: protected
mixed $timeout = 30000 (line 15)

Selenium instantiation variables

  • access: protected

Inherited Variables

Inherited from SimpleTestCase

SimpleTestCase::$_label
SimpleTestCase::$_observers
SimpleTestCase::$_reporter
SimpleTestCase::$_should_skip
Methods
Constructor __construct (line 21)
  • access: public
SeleniumTestCase __construct ([ $name = 'Selenium Test Case'])
  • $name
setUp (line 35)
  • access: public
void setUp ()

Redefinition of:
SimpleTestCase::setUp()
Sets up unit test wide variables at the start of each test method. To be overridden in actual user test cases.
tearDown (line 50)
  • access: public
void tearDown ()

Redefinition of:
SimpleTestCase::tearDown()
Clears the data set in the setUp() method call.
verifyText (line 76)
  • access: public
void verifyText ( $text)
  • $text
verifyTextNotPresent (line 96)
  • access: public
void verifyTextNotPresent ( $text)
  • $text
verifyTextPresent (line 86)
  • access: public
void verifyTextPresent ( $text)
  • $text
verifyTitle (line 117)
  • access: public
void verifyTitle ( $pattern)
  • $pattern
verifyValue (line 106)
  • access: public
void verifyValue ( $selector,  $value)
  • $selector
  • $value
__call (line 59)
  • access: public
void __call ( $method,  $arguments)
  • $method
  • $arguments

Inherited Methods

Inherited From UnitTestCase

 UnitTestCase::UnitTestCase()
 UnitTestCase::assertClone()
 UnitTestCase::assertCopy()
 UnitTestCase::assertEqual()
 UnitTestCase::assertError()
 UnitTestCase::assertErrorPattern()
 UnitTestCase::assertFalse()
 UnitTestCase::assertIdentical()
 UnitTestCase::assertIsA()
 UnitTestCase::assertNoErrors()
 UnitTestCase::assertNoPattern()
 UnitTestCase::assertNotA()
 UnitTestCase::assertNotEqual()
 UnitTestCase::assertNotIdentical()
 UnitTestCase::assertNotNull()
 UnitTestCase::assertNoUnwantedPattern()
 UnitTestCase::assertNull()
 UnitTestCase::assertOutsideMargin()
 UnitTestCase::assertPattern()
 UnitTestCase::assertReference()
 UnitTestCase::assertTrue()
 UnitTestCase::assertWantedPattern()
 UnitTestCase::assertWithinMargin()
 UnitTestCase::expectError()
 UnitTestCase::expectException()
 UnitTestCase::swallowErrors()

Inherited From SimpleTestCase

 SimpleTestCase::SimpleTestCase()
 SimpleTestCase::after()
 SimpleTestCase::assert()
 SimpleTestCase::assertExpectation()
 SimpleTestCase::before()
 SimpleTestCase::createInvoker()
 SimpleTestCase::dump()
 SimpleTestCase::error()
 SimpleTestCase::exception()
 SimpleTestCase::fail()
 SimpleTestCase::getAssertionLine()
 SimpleTestCase::getLabel()
 SimpleTestCase::getSize()
 SimpleTestCase::getTests()
 SimpleTestCase::pass()
 SimpleTestCase::run()
 SimpleTestCase::sendMessage()
 SimpleTestCase::setUp()
 SimpleTestCase::signal()
 SimpleTestCase::skip()
 SimpleTestCase::skipIf()
 SimpleTestCase::skipUnless()
 SimpleTestCase::tearDown()
 SimpleTestCase::tell()
 SimpleTestCase::_isTest()

Documentation generated on Sun, 04 May 2008 09:22:06 -0500 by phpDocumentor 1.3.0