24 lines
707 B
PHP
24 lines
707 B
PHP
|
<?php
|
||
|
|
||
|
namespace Tests\Selenium2TestCase;
|
||
|
|
||
|
use PHPUnit\Extensions\Selenium2TestCase;
|
||
|
|
||
|
class SessionInSetupTest extends Selenium2TestCase
|
||
|
{
|
||
|
public function setUp(): void
|
||
|
{
|
||
|
$this->setHost(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_HOST);
|
||
|
$this->setPort((int)PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_PORT);
|
||
|
$this->setBrowser(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM2_BROWSER);
|
||
|
$this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL);
|
||
|
$this->prepareSession();
|
||
|
$this->url('html/test_open.html');
|
||
|
}
|
||
|
|
||
|
public function testTheSessionStartedInSetupAndCanBeUsedNow()
|
||
|
{
|
||
|
$this->assertStringEndsWith('html/test_open.html', $this->url());
|
||
|
}
|
||
|
}
|