浏览代码

merged branch michal-pipa/test-fix (PR #3470)

Commits
-------

515b581 [FrameworkBundle] Fixed test

Discussion
----------

[FrameworkBundle] Fixed test on Ubuntu 10.04 LTS

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Symfony2 tests pass: [![Build Status](https://secure.travis-ci.org/michal-pipa/symfony.png?branch=test-fix)](http://travis-ci.org/michal-pipa/symfony)
Fixes the following tickets: -
Todo: -

Test was failing on Ubuntu 10.04 LTS because Ubuntu adds it's own PHP extra version number, which was greater than 5.3.2.

The same bug exist in master branch.
Fabien Potencier 13 年之前
父节点
当前提交
241e4fccbd
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      src/Symfony/Bundle/FrameworkBundle/Tests/HttpKernelTest.php

+ 2 - 2
src/Symfony/Bundle/FrameworkBundle/Tests/HttpKernelTest.php

@@ -169,8 +169,8 @@ class HttpKernelTest extends \PHPUnit_Framework_TestCase
 
     public function testExceptionInSubRequestsDoesNotMangleOutputBuffers()
     {
-        if (version_compare(phpversion(), "5.3.2", "<=")) {
-            $this->markTestSkipped('Test fails with PHP5.3.2 due to https://bugs.php.net/bug.php?id=50563');
+        if (version_compare(phpversion(), '5.3.3', '<')) {
+            $this->markTestSkipped('Test fails with PHP 5.3.2 due to https://bugs.php.net/bug.php?id=50563');
         }
 
         $request = new Request();