Skip to content

Instantly share code, notes, and snippets.

@testingbot
Created December 21, 2011 15:34
Show Gist options
  • Save testingbot/1506442 to your computer and use it in GitHub Desktop.
Save testingbot/1506442 to your computer and use it in GitHub Desktop.
<?php
class ExampleTest extends PHPUnit_Extensions_TestingBotTestCase
{
public static $browsers = array(
array(
'name' => "Windows firefox 8",
'platform' => 'Windows',
'browser' => 'firefox',
'browserVersion' => '8'
),
array(
'name' => "Windows firefox 7",
'platform' => 'Windows',
'browser' => 'firefox',
'browserVersion' => '7'
),
);
protected function setUp()
{
$this->setHost('hub.testingbot.com');
$this->setPort(4444);
$this->setBrowserUrl('http://www.google.be/');
}
public function testTitle()
{
$this->open('/');
$this->assertTitle('Google');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment