for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mezon\Gui\FormBuilder\Tests;
class FormHeaderUnitTest extends \PHPUnit\Framework\TestCase
{
/**
* Testing constructor
*/
public function testConstructor(): void
// setup
$field = new \Mezon\Gui\FormBuilder\FormHeader([
'text' => 'name'
]);
// test body
$content = $field->html();
// assertions
$this->assertStringContainsString('<h3>name</h3>', $content, 'Header was not built');
}
* Testing fillAllRow method
public function testFillAllRow(): void
// test body and assertions
$this->assertFalse($field->fillAllRow());