| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 3 | class CacheTest extends \PHPUnit\Framework\TestCase |
||
| 4 | { |
||
| 5 | public function testRun() |
||
| 6 | { |
||
| 7 | $cfgfile = dirname( dirname( __DIR__ ) ) . '/src/aimeos-default.php'; |
||
| 8 | $argv = array( "cache.php", "--config=$cfgfile", "unittest" ); |
||
| 9 | |||
| 10 | ob_start(); |
||
| 11 | $result = \Aimeos\Slim\Command\Cache::run( $argv ); |
||
| 12 | $output = ob_get_contents(); |
||
| 13 | ob_end_clean(); |
||
| 14 | |||
| 15 | $this->assertEquals( "Clearing the Aimeos cache for site \"unittest\"\n", $output ); |
||
| 16 | } |
||
| 17 | |||
| 18 | |||
| 19 | /** |
||
| 20 | * @expectedException Aimeos\Slim\Command\Exception |
||
| 21 | */ |
||
| 22 | public function testRunHelp() |
||
| 28 | } |
||
| 29 | } |
||
| 30 |