Browse Source

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

Kris Wallsmith 14 năm trước cách đây
mục cha
commit
b622e6a9e6

+ 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();