浏览代码

[AsseticBundle] added skip if PHP_CodeSniffer is not installed (closes #14)

Kris Wallsmith 14 年之前
父节点
当前提交
b622e6a9e6
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      src/Symfony/Bundle/AsseticBundle/Tests/DependencyInjection/AsseticExtensionTest.php

+ 4 - 0
src/Symfony/Bundle/AsseticBundle/Tests/DependencyInjection/AsseticExtensionTest.php

@@ -43,6 +43,10 @@ class AsseticExtensionTest extends \PHPUnit_Framework_TestCase
             $this->markTestSkipped('Assetic is not available.');
         }
 
+        if (false === @include 'PHP/CodeSniffer.php') {
+            $this->markTestSkipped('PHP_CodeSniffer is not installed.');
+        }
+
         $this->kernel = $this->getMockBuilder('Symfony\\Component\\HttpKernel\\Kernel')
             ->disableOriginalConstructor()
             ->getMock();