This repository has been archived on 2024-09-05. You can view files and clone it, but cannot push or open issues or pull requests.
shimmie2/core/tests/BlockTest.php

22 lines
448 B
PHP
Raw Normal View History

2021-12-14 18:32:47 +00:00
<?php
declare(strict_types=1);
2020-03-13 09:23:54 +00:00
namespace Shimmie2;
2020-03-13 09:23:54 +00:00
use PHPUnit\Framework\TestCase;
2020-01-28 00:47:30 +00:00
require_once "core/block.php";
2020-03-13 09:23:54 +00:00
class BlockTest extends TestCase
2020-01-28 00:47:30 +00:00
{
2024-01-15 14:31:51 +00:00
public function test_basic(): void
2020-01-29 00:49:21 +00:00
{
2020-01-28 00:47:30 +00:00
$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()
);
}
}