PHPUnit 10 (and other bumps)

This commit is contained in:
Shish
2023-12-14 00:14:24 +00:00
committed by Shish
parent 5897bfdb7b
commit e114057dfe
15 changed files with 441 additions and 473 deletions

21
core/tests/BlockTest.php Normal file
View File

@@ -0,0 +1,21 @@
<?php
declare(strict_types=1);
namespace Shimmie2;
use PHPUnit\Framework\TestCase;
require_once "core/block.php";
class BlockTest extends TestCase
{
public function test_basic()
{
$b = new Block("head", "body");
$this->assertEquals(
"<section id='headmain'><h3 data-toggle-sel='#headmain' class=''>head</h3><div class='blockbody'>body</div></section>\n",
$b->get_html()
);
}
}