31 lines
519 B
PHP
31 lines
519 B
PHP
|
<?PHP
|
||
|
/**
|
||
|
* This script contains tests for the home page.
|
||
|
*
|
||
|
* @author Joshua Ramon Enslin <joshua@jrenslin.de>
|
||
|
*/
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
// phpcs:disable
|
||
|
|
||
|
use PHPUnit\Framework\TestCase;
|
||
|
|
||
|
final class StartPageLoadsTest extends TestCase {
|
||
|
|
||
|
public function testHTMLOutput():void {
|
||
|
|
||
|
ob_start();
|
||
|
include __DIR__ . "/../index.php";
|
||
|
$output = $this->getActualOutput();
|
||
|
|
||
|
$this->assertEquals(
|
||
|
true,
|
||
|
is_string($output)
|
||
|
);
|
||
|
|
||
|
ob_clean();
|
||
|
|
||
|
}
|
||
|
|
||
|
}
|