HummingBirdAnimeClient/tests/AnimeClient/Helper/FormHelperTest.php

42 lines
996 B
PHP
Raw Normal View History

2021-02-23 12:00:22 -05:00
<?php declare(strict_types=1);
/**
* Hummingbird Anime List Client
*
* An API client for Kitsu to manage anime and manga watch lists
*
* PHP version 8
*
* @package HummingbirdAnimeClient
2022-03-04 12:32:17 -05:00
* @author Timothy J. Warren <tim@timshome.page>
* @copyright 2015 - 2022 Timothy J. Warren
2021-02-23 12:00:22 -05:00
* @license http://www.opensource.org/licenses/mit-license.html MIT License
* @version 5.2
* @link https://git.timshomepage.net/timw4mail/HummingBirdAnimeClient
*/
namespace Aviat\AnimeClient\Tests\Helper;
use Aviat\AnimeClient\Helper\Form as FormHelper;
use Aviat\AnimeClient\Tests\AnimeClientTestCase;
2022-03-04 12:19:47 -05:00
/**
* @internal
*/
final class FormHelperTest extends AnimeClientTestCase
{
2021-02-23 12:00:22 -05:00
public function testFormHelper(): void
{
$helper = new FormHelper();
$helper->setContainer($this->container);
$actual = $helper('input', [
'type' => 'text',
'value' => 'foo',
'placeholder' => 'field',
2022-03-04 12:19:47 -05:00
'name' => 'test',
2021-02-23 12:00:22 -05:00
]);
$this->assertMatchesSnapshot($actual);
}
2022-03-04 12:19:47 -05:00
}