TimeTrex/vendor/phpunit/phpunit-selenium/Tests/Selenium2TestCase/BaseTestCase.php

20 lines
745 B
PHP
Raw Normal View History

2022-12-13 07:10:06 +01:00
<?php
namespace Tests\Selenium2TestCase;
use PHPUnit\Extensions\Selenium2TestCase;
class BaseTestCase 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);
if (!defined('PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL')) {
$this->markTestSkipped("You must serve the selenium-1-tests folder from an HTTP server and configure the PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL constant accordingly.");
}
$this->setBrowserUrl(PHPUNIT_TESTSUITE_EXTENSION_SELENIUM_TESTS_URL);
}
}