浏览代码

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 年之前
父节点
当前提交
548c968444
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      tests/Symfony/Tests/Bridge/Monolog/Processor/WebProcessorTest.php

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