瀏覽代碼

[AsseticBundle] fixed command unit test

Kris Wallsmith 14 年之前
父節點
當前提交
f29aba534c
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      src/Symfony/Bundle/AsseticBundle/Tests/Command/DumpCommandTest.php

+ 5 - 1
src/Symfony/Bundle/AsseticBundle/Tests/Command/DumpCommandTest.php

@@ -13,6 +13,7 @@ namespace Symfony\Bundle\AsseticBundle\Tests\Command;
 
 use Symfony\Bundle\AsseticBundle\Command\DumpCommand;
 use Symfony\Component\Console\Input\ArrayInput;
+use Symfony\Component\Console\Input\InputOption;
 use Symfony\Component\Console\Output\NullOutput;
 
 class DumpCommandTest extends \PHPUnit_Framework_TestCase
@@ -52,7 +53,10 @@ class DumpCommandTest extends \PHPUnit_Framework_TestCase
             ->will($this->returnValue(array()));
         $this->definition->expects($this->any())
             ->method('getOptions')
-            ->will($this->returnValue(array()));
+            ->will($this->returnValue(array(
+                new InputOption('--env', '-e', InputOption::VALUE_REQUIRED, 'The Environment name.', 'dev'),
+                new InputOption('--no-debug', null, InputOption::VALUE_NONE, 'Switches off debug mode.'),
+            )));
         $this->application->expects($this->any())
             ->method('getKernel')
             ->will($this->returnValue($this->kernel));