Selaa lähdekoodia

merged branch stloyd/monolog-tests (PR #2400)

Commits
-------

d9d9c6b [Tests] Skip Monolog test if it's not available.

Discussion
----------

[Tests] Skip Monolog test if it's not available.
Fabien Potencier 13 vuotta sitten
vanhempi
commit
548c968444

+ 7 - 0
tests/Symfony/Tests/Bridge/Monolog/Processor/WebProcessorTest.php

@@ -17,6 +17,13 @@ use Symfony\Component\HttpFoundation\Request;
 
 class WebProcessorTest extends \PHPUnit_Framework_TestCase
 {
+    public function setUp()
+    {
+        if (!class_exists('Monolog\\Logger')) {
+            $this->markTestSkipped('Monolog is not available.');
+        }
+    }
+
     public function testUsesRequestServerData()
     {
         $server = array(