Skip to content

Commit f800fb6

Browse files
committed
Merge pull request #44 from symfony-cmf/drop_2_2
drop Symfony 2.2 support
2 parents 445ce60 + 1bf33b4 commit f800fb6

File tree

5 files changed

+13
-54
lines changed

5 files changed

+13
-54
lines changed

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ php:
66
- 5.5
77

88
env:
9-
- SYMFONY_VERSION=2.2.*
109
- SYMFONY_VERSION=2.3.*
1110
- SYMFONY_VERSION=2.4.*
1211
- SYMFONY_VERSION=dev-master

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
Changelog
22
=========
33

4+
1.1.0-RC2
5+
---------
6+
7+
* **2014-04-11**: drop Symfony 2.2 compatibility
8+
49
1.1.0-RC1
510
---------
611

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
],
1111
"minimum-stability": "dev",
1212
"require": {
13-
"symfony/symfony": "~2.1",
13+
"symfony/symfony": "~2.3",
1414
"symfony/monolog-bundle": "~2.1",
1515
"doctrine/common": "~2.4",
1616
"doctrine/doctrine-bundle": "1.*",

resources/.travis.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ php:
55
- 5.4
66

77
env:
8-
- SYMFONY_VERSION=2.1.*
9-
- SYMFONY_VERSION=2.2.*
108
- SYMFONY_VERSION=2.3.*
9+
- SYMFONY_VERSION=2.4.*
10+
- SYMFONY_VERSION=dev-master
1111

1212
before_script:
1313
- ./vendor/symfony-cmf/testing/bin/init-travis/phpcr_odm_doctrine_dbal.sh
@@ -17,3 +17,7 @@ script: phpunit --coverage-text
1717
notifications:
1818
irc: "irc.freenode.org#symfony-cmf"
1919
20+
21+
matrix:
22+
allow_failures:
23+
- env: SYMFONY_VERSION=dev-master

src/Symfony/Cmf/Component/Testing/Phpunit/DatabaseTestListener.php

Lines changed: 1 addition & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class DatabaseTestListener implements \PHPUnit_Framework_TestListener
2626
public function __construct($processBuilder = null)
2727
{
2828
if (null === $processBuilder) {
29-
$this->processBuilder = new PrefixedProcessBuilder();
29+
$this->processBuilder = new ProcessBuilder();
3030
$phpExecutableFinder = new PhpExecutableFinder();
3131
$phpExecutable = $phpExecutableFinder->find();
3232
if (false !== $phpExecutable) {
@@ -219,52 +219,3 @@ public function endTestSuite(\PHPUnit_Framework_TestSuite $suite)
219219
}
220220
}
221221
}
222-
223-
class PrefixedProcessBuilder extends ProcessBuilder
224-
{
225-
private $prefixes = array();
226-
private $activated = true;
227-
228-
public function __construct(array $arguments = array())
229-
{
230-
parent::__construct($arguments);
231-
232-
if (class_exists('Symfony\Component\HttpKernel\Kernel')) {
233-
$this->activated = Kernel::VERSION_ID <= 20400;
234-
} else {
235-
$ref = new \ReflectionMethod(get_parent_class($this), 'setPrefix');
236-
$doc = $ref->getDocComment();
237-
238-
$this->activated = false === strpos('array', $doc);
239-
}
240-
}
241-
242-
public function setPrefix($prefix)
243-
{
244-
$prefixes = is_array($prefix) ? $prefix : array($prefix);
245-
246-
if (!$this->activated) {
247-
return parent::setPrefix($prefix);
248-
}
249-
250-
foreach ($prefixes as $prefix) {
251-
$this->prefixes[] = $prefix;
252-
}
253-
254-
return $this;
255-
}
256-
257-
public function getProcess()
258-
{
259-
if (!$this->activated || 0 === count($this->prefixes)) {
260-
return parent::getProcess();
261-
}
262-
263-
$process = parent::getProcess();
264-
$command = implode(' ', array_map('escapeshellarg', $this->prefixes)).' '.$process->getCommandLine();
265-
266-
$process->setCommandLine($command);
267-
268-
return $process;
269-
}
270-
}

0 commit comments

Comments
 (0)