Commit 0aa90459 authored by David Morley's avatar David Morley

setup selenium in phpunit

parent 51ea077d
......@@ -3,6 +3,7 @@ php:
- 5.3
- 5.4
before_script: "./phpunit/before.sh"
script: phpunit
notifications:
......
sh -e /etc/init.d/xvfb start
export DISPLAY=:99.0
<?php
require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
class WebTest extends PHPUnit_Extensions_SeleniumTestCase
{
protected function setUp()
{
$this->setBrowser('*firefox');
$this->setBrowserUrl('http://podupti.me/');
}
public function testTitle()
{
$this->open('http://podupti.me/');
$this->assertTitle('Diaspora Pod uptime - Find your new social home');
}
}
?>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment