Add test for start page

phpcs-errors:1646 phpunit-status:successful
This commit is contained in:
2019-11-11 12:13:52 +01:00
committed by Stefan Rohde-Enslin
parent 326265a646
commit 4ac6b8e9a5
6 changed files with 116 additions and 1 deletions

View File

@ -0,0 +1,30 @@
<?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();
}
}