| 1 | <?php |
||
| 12 | class TemplateTest extends \PHPUnit_Framework_TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * Tests Template::getCode |
||
| 16 | */ |
||
| 17 | public function testCode() |
||
| 18 | { |
||
| 19 | $code = Template::getCode('commit-msg'); |
||
| 20 | |||
| 21 | $this->assertTrue(strpos($code, '#!/usr/bin/env php') !== false); |
||
| 22 | $this->assertTrue(strpos($code, '$app->setHook(\'commit-msg\');') !== false); |
||
| 23 | $this->assertTrue(strpos($code, '$app->run();') !== false); |
||
| 24 | } |
||
| 25 | } |
||
| 26 |