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/FirstTest.php

32 lines
694 B

<?php
declare(strict_types=1);
namespace UnitTestFiles\Test;
use PHPUnit\Framework\TestCase;
class FirstTest extends TestCase {
public function setUp(): void {
require "setup.php";
setup("/mockup/app/first/returns_true.html");
}
private function do_routes() {
$found_route = \tts\router::execute();
if ($found_route) {
$condition = $found_route;
} else {
$app = new \tts\app();
$condition = $app->load_controller();
}
return $condition;
}
public function testTrueAssetsToTrue() {
$condition = $this->do_routes();
$this->assertTrue($condition);
}
}