8000 [AsseticBundle] added skip if PHP_CodeSniffer is not installed (close… · symfony/symfony@b622e6a · GitHub
[go: up one dir, main page]

Skip to content

Commit b622e6a

Browse files
committed
[AsseticBundle] added skip if PHP_CodeSniffer is not installed (closes #14)
1 parent d7ea92a commit b622e6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Bundle/AsseticBundle/Tests/DependencyInjection/AsseticExtensionTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ protected function setUp()
4343
$this->markTestSkipped('Assetic is not available.');
4444
}
4545

46+
if (false === @include 'PHP/CodeSniffer.php') {
47+
$this->markTestSkipped('PHP_CodeSniffer is not installed.');
48+
}
49+
4650
$this->kernel = $this->getMockBuilder('Symfony\\Component\\HttpKernel\\Kernel')
4751
->disableOriginalConstructor()
4852
->getMock();

0 commit comments

Comments
 (0)
0