for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace AbterPhp\Files\Grid\Filters;
use PHPUnit\Framework\TestCase;
class FileDownloadTest extends TestCase
{
/**
* @return array
*/
public function filterProvider(): array
return [
[[], [], null],
];
}
* @dataProvider filterProvider
*
* @param string[] $intents
* @param array $attributes
* @param string|null $tag
public function testFilter(array $intents, array $attributes, ?string $tag)
$sut = new FileDownload($intents, $attributes, $tag);
$html = (string)$sut;
$this->assertStringContainsString('<div class="hidable">', $html);
$this->assertStringContainsString('<form class="filter-form"></form>', $html);