/**
* testClearInvalid
*
* @since 3.0.0
*/
public function testClearInvalid()
{
/* setup */
$this->_request->setServer('argv', ['console.php', 'cache', 'clear-invalid', '--directory', 'cache/page', '--lifetime', '3600']);
$cacheCommand = new Command\Cache($this->_registry, $this->_request, $this->_config);
/* actual */
$actual = $cacheCommand->run('cli');
/* compare */
$this->assertEquals('cache/page', $actual->getDirectory());
}