for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Mezon\Gui\WidgetsRegistry\Tests;
class BootstrapWidgetsUnitTest extends \PHPUnit\Framework\TestCase
{
/**
* Getting template
*/
public function testGetTemplate()
// setup
$bootstrapWidgets = new \Mezon\Gui\WidgetsRegistry\BootstrapWidgets();
// test body
$widget = $bootstrapWidgets->getWidget('table-cell-start');
// assertions
$this->assertStringContainsString('<td', $widget, 'Content of the widget "table-cell-start" was not loaded');
}