A Sample PHP Project for the tts_framework.
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.
 
 
 
tts_project/UnitTestFiles/Test/SecondTest.php

28 lines
679 B

<?php
declare(strict_types=1);
namespace UnitTestFiles\Test;
use PHPUnit\Framework\TestCase;
class SecondTest extends TestCase {
private $setup;
protected function setUp(): void {
$this->setup = \testing\tts_setup::get_instance();
}
public function testIdAssetsToId() {
$this->setup::test_route("mockup/example/10");
$condition = $this->setup::do_routes();
$this->assertEquals($condition, 10);
}
public function testAnotherRouteAssetsToTrue() {
$this->setup::test_route("/mockup/app/first/not_same.html");
$condition = $this->setup::do_routes();
$this->assertFalse($condition);
}
}