<?php
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
 
class WebTest extends PHPUnit_Extensions_SeleniumTestCase
{
    protected $captureScreenshotOnFailure = TRUE;
    protected $screenshotPath = '/var/www/localhost/htdocs/screenshots';
    protected $screenshotUrl = 'http://localhost/screenshots';
 
    public static $browsers = array(
      array(
        'name'    => 'Safari (system Mac OS X)',
        'browser' => '*safari',
        'host'    => 'mac.testbox',
        'port'    => 4444,
        'timeout' => 30000
      ),
array(
        'name'    => 'Firefox (system Windows)',
        'browser' => '*firefox',
        'host'    => 'windows.testbox',
        'port'    => 4444,
        'timeout' => 30000
      ),
      array(
        'name'    => 'Chrome (system Windows XP)',
        'browser' => '*googlechrome',
        'host'    => 'windows.testbox',
        'port'    => 4444,
        'timeout' => 30000
      ),
      array(
        'name'    => 'Internet Explorer (system Windows XP)',
        'browser' => '*iexplore',
        'host'    => 'windows.testbox',
        'port'    => 4444,
        'timeout' => 30000
      )
    );
     
    protected function setUp()
    {
        $this->setBrowserUrl('http://www.przyklad.com/');
    }
 
    public function testSeleniumFile()
    {
        $this->open('http://www.przyklad.com/');
        $this->runSelenese('seleneseTest.html');
    }
 
}
?>