-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
53 additions
and
186 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
<?php | ||
|
||
/* | ||
* Task runner, code generator and build tool for easier continuos integration | ||
* | ||
* @link https://github.com/hiqdev/hidev | ||
* @package hidev | ||
* @license BSD-3-Clause | ||
* @copyright Copyright (c) 2014-2016, HiQDev (http://hiqdev.com/) | ||
*/ | ||
|
||
namespace hidev\tests\unit\controllers; | ||
|
||
use hidev\controllers\FileController; | ||
|
||
/** | ||
* Tests from FileController. | ||
*/ | ||
class FileControllerTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
/** | ||
* @var FileController | ||
*/ | ||
protected $object; | ||
|
||
protected $template = 'asd'; | ||
|
||
/** | ||
* Sets up the fixture, for example, opens a network connection. | ||
* This method is called before a test is executed. | ||
*/ | ||
protected function setUp() | ||
{ | ||
$this->object = new FileController('test', null); | ||
} | ||
|
||
/** | ||
* Tears down the fixture, for example, closes a network connection. | ||
* This method is called after a test is executed. | ||
*/ | ||
protected function tearDown() | ||
{ | ||
} | ||
|
||
public function testSetTemplate() | ||
{ | ||
$this->object->setTemplate($this->template); | ||
$this->assertSame($this->template, $this->object->getTemplate()); | ||
} | ||
|
||
} |
This file was deleted.
Oops, something went wrong.