Added ViewFunctionTest

This commit is contained in:
Chris Kankiewicz
2020-06-11 09:08:21 -07:00
parent 89e712da3b
commit 9f2da572b9

View File

@@ -0,0 +1,20 @@
<?php
namespace Tests\ViewFunctions;
use App\ViewFunctions\ViewFunction;
use Tests\TestCase;
/** @covers \App\ViewFunctions\ViewFunction */
class ViewFunctionTest extends TestCase
{
public function test_it_can_be_extended(): void
{
$viewFunction = new class extends ViewFunction {
protected $name = 'foo';
};
$this->assertInstanceOf(ViewFunction::class, $viewFunction);
$this->assertEquals('foo', $viewFunction->name());
}
}