Tests for ViewFactory

This commit is contained in:
Pierre Rudloff 2017-04-26 00:59:30 +02:00
parent 00407a2f60
commit ea8e26c649
1 changed files with 28 additions and 0 deletions

28
tests/ViewFactoryTest.php Normal file
View File

@ -0,0 +1,28 @@
<?php
/**
* ViewFactoryTest class.
*/
namespace Alltube\Test;
use Alltube\ViewFactory;
use Slim\Container;
use Slim\Views\Smarty;
/**
* Unit tests for the ViewFactory class.
*/
class ViewFactoryTest extends \PHPUnit_Framework_TestCase
{
/**
* Test the create() function.
*
* @return void
*/
public function testCreate()
{
$view = ViewFactory::create(new Container());
$this->assertInstanceOf(Smarty::class, $view);
}
}