Code Duplication    Length = 15-15 lines in 2 locations

Tests/Functional/Command/RemoveCacheTest.php 1 location

@@ 283-297 (lines=15) @@
280
     *
281
     * @return string
282
     */
283
    protected function executeConsole(Command $command, array $arguments = array(), array $options = array())
284
    {
285
        $command->setApplication(new Application($this->createClient()->getKernel()));
286
        if ($command instanceof ContainerAwareCommand) {
287
            $command->setContainer($this->createClient()->getContainer());
288
        }
289
290
        $arguments = array_replace(array('command' => $command->getName()), $arguments);
291
        $options = array_replace(array('--env' => 'test'), $options);
292
293
        $commandTester = new CommandTester($command);
294
        $commandTester->execute($arguments, $options);
295
296
        return $commandTester->getDisplay();
297
    }
298
}
299

Tests/Functional/Command/ResolveCacheTest.php 1 location

@@ 147-161 (lines=15) @@
144
     *
145
     * @return string
146
     */
147
    protected function executeConsole(Command $command, array $arguments = array(), array $options = array())
148
    {
149
        $command->setApplication(new Application($this->createClient()->getKernel()));
150
        if ($command instanceof ContainerAwareCommand) {
151
            $command->setContainer($this->createClient()->getContainer());
152
        }
153
154
        $arguments = array_replace(array('command' => $command->getName()), $arguments);
155
        $options = array_replace(array('--env' => 'test'), $options);
156
157
        $commandTester = new CommandTester($command);
158
        $commandTester->execute($arguments, $options);
159
160
        return $commandTester->getDisplay();
161
    }
162
}
163