You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
28 lines
726 B
28 lines
726 B
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace UnitTestFiles\Test;
|
|
use PHPUnit\Framework\TestCase;
|
|
|
|
class FirstTest extends TestCase {
|
|
private $setup;
|
|
|
|
protected function setUp(): void {
|
|
require_once "tts_setup.php";
|
|
$this->setup = \testing\tts_setup::get_instance();
|
|
}
|
|
|
|
public function testTrueAssetsToTrue() {
|
|
$this->setup::test_route("/mockup/app/first/returns_true.html");
|
|
$condition = $this->setup::do_routes();
|
|
$this->assertTrue($condition);
|
|
}
|
|
|
|
public function testAnotherRouteAssetsToTrue() {
|
|
$this->setup::test_route("/mockup/app/first/same.html");
|
|
$condition = $this->setup::do_routes();
|
|
$this->assertTrue($condition);
|
|
}
|
|
|
|
} |