public function testThrowsWhenAccessControlIsNotValid() { $command = new AddPublicKey(); $command->setConfig(['accessControl' => new \Exception()]); $commandTester = new CommandTester($command); $commandTester->execute(['publicKey' => 'foo']); }