Created
December 18, 2014 17:43
-
-
Save jepster/ca6a833a91e79f376485 to your computer and use it in GitHub Desktop.
Yii2 PHPUnit Test
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
<?php | |
use app\commands\ObjectExportController; | |
use app\tests\fixtures\ModelFixtureDataCreator; | |
class MyTest extends PHPUnit_Framework_TestCase | |
{ | |
protected function setUp() | |
{ | |
require_once 'yii_booter_for_tests.php'; | |
$test_classname = get_class($this); | |
ModelFixtureDataCreator::create($test_classname); | |
} | |
public function test() | |
{ | |
MyController::export(1); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment