<commit_before><?php

require __DIR__ . '../../vendor/autoload.php';
require __DIR__ . '../../src/Bootstrap4Jumbotron.php';

use DBlackborough\Zf3ViewHelpers\Bootstrap4Jumbotron;

final class Bootstrap4JumbotronTest extends PHPUnit\Framework\TestCase
{
    /**
     * Test the default view helper call
     */
    public function testDefault()
    {
        $view_helper = new Bootstrap4Jumbotron();
        $view_helper->__invoke('Heading', '<p>Content</p>');
        $this->assertEquals(
            '<div class="jumbotron"><h1 class="display-1">Heading</h1><p>Content</p></div>',
            $view_helper->__toString()
        );
    }
}
<commit_msg>Sub heading<commit_after><?php

require __DIR__ . '../../vendor/autoload.php';
require __DIR__ . '../../src/Bootstrap4Jumbotron.php';

use DBlackborough\Zf3ViewHelpers\Bootstrap4Jumbotron;

final class Bootstrap4JumbotronTest extends PHPUnit\Framework\TestCase
{
    /**
     * Test the default view helper call
     */
    public function testDefault()
    {
        $view_helper = new Bootstrap4Jumbotron();
        $view_helper->__invoke('Heading', '<p>Content</p>');
        $this->assertEquals(
            '<div class="jumbotron"><h1 class="display-1">Heading</h1><p>Content</p></div>',
            $view_helper->__toString()
        );
    }

    /**
     * Add a sub heading
     */
    public function testSubHeading()
    {
        $view_helper = new Bootstrap4Jumbotron();
        $view_helper->__invoke('Heading', '<p>Content</p>')
            ->subHeading('Sub heading');
        $this->assertEquals(
            '<div class="jumbotron"><h1 class="display-1">Heading <small>Sub heading</small></h1><p>Content</p></div>',
            $view_helper->__toString()
        );
    }
}

{'fraction_non_alphanumeric': 0.16275071633237823, 'fraction_numerical': 0.011461318051575931, 'mean_word_length': 2.803921568627451, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 39, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4991316', 'n_tokens_mistral': 552, 'n_tokens_neox': 559, 'n_words': 88}