initial
This commit is contained in:
commit
b641f863e8
|
@ -0,0 +1,2 @@
|
||||||
|
/vendor/
|
||||||
|
*~
|
|
@ -0,0 +1,25 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
use Facebook\WebDriver\Remote\DesiredCapabilities;
|
||||||
|
use Facebook\WebDriver\Remote\RemoteWebDriver;
|
||||||
|
|
||||||
|
require 'vendor/autoload.php';
|
||||||
|
|
||||||
|
class GitHubTests extends PHPUnit_Framework_TestCase {
|
||||||
|
|
||||||
|
protected $webDriver;
|
||||||
|
protected $url = 'https://github.com';
|
||||||
|
|
||||||
|
public function setUp() {
|
||||||
|
$this->webDriver = RemoteWebDriver::create('http://localhost:4444/wd/hub', DesiredCapabilities::firefox());
|
||||||
|
}
|
||||||
|
|
||||||
|
public function tearDown()
|
||||||
|
{
|
||||||
|
$this->webDriver->quit();
|
||||||
|
}
|
||||||
|
public function testGitHubHome() {
|
||||||
|
$this->webDriver->get($this->url);
|
||||||
|
$this->assertContains('GitHub', $this->webDriver->getTitle());
|
||||||
|
}
|
||||||
|
}
|
Binary file not shown.
|
@ -0,0 +1,9 @@
|
||||||
|
{
|
||||||
|
"require-dev": {
|
||||||
|
"phpunit/phpunit": "*",
|
||||||
|
"facebook/webdriver": "^1.2",
|
||||||
|
"se/selenium-server-standalone": "~2"
|
||||||
|
},
|
||||||
|
"require": {
|
||||||
|
}
|
||||||
|
}
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue