/** * testDatabaseInvalid * * @since 3.0.0 */ public function testDatabaseInvalid() { /* setup */ $this->_request->setServer('argv', ['console.php', 'backup', 'database', '--no-interaction']); $backupCommand = new Command\Backup($this->_registry, $this->_request, $this->_config); /* actual */ $actual = $backupCommand->run('cli'); /* compare */ $this->assertFalse($actual); }