Add Browser test

This commit is contained in:
Flavio Copes
2016-01-19 14:16:06 +01:00
parent 235b7e5ff3
commit 1ecd4bfd5a

View File

@@ -0,0 +1,38 @@
<?php
use Codeception\Util\Fixtures;
class BrowserTest extends \Codeception\TestCase\Test
{
/**
* @var \UnitTester
*/
protected $tester;
protected function _before()
{
}
protected function _after()
{
}
public function grav()
{
return Fixtures::get('grav');
}
public function testGetBrowser() { /* Already covered by PhpUserAgent tests */ }
public function testGetPlatform() { /* Already covered by PhpUserAgent tests */ }
public function testGetLongVersion() { /* Already covered by PhpUserAgent tests */ }
public function testGetVersion() { /* Already covered by PhpUserAgent tests */ }
public function testIsHuman()
{
//Already Partially covered by PhpUserAgent tests
//Make sure it recognizes the test as not human
$this->assertFalse($this->grav()['browser']->isHuman());
}
}