Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 750f3a6

Browse filesBrowse files
No global state for isolated tests and other fixes
1 parent f68b7c7 commit 750f3a6
Copy full SHA for 750f3a6

File tree

Expand file treeCollapse file tree

12 files changed

+22
-7
lines changed
Filter options
Expand file treeCollapse file tree

12 files changed

+22
-7
lines changed

‎.travis.yml

Copy file name to clipboardExpand all lines: .travis.yml
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ install:
3838
- if [ "$components" = "no" ]; then COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install; fi;
3939

4040
script:
41-
- if [ "$components" = "no" ]; then ls -d src/Symfony/*/* | parallel --gnu --keep-order 'echo "Running {} tests"; phpunit --exclude-group tty,benchmark,intl-data {};'; fi;
42-
- if [ "$components" = "no" ]; then echo "Running tests requiring tty"; phpunit --group tty; fi;
43-
- if [ "$components" = "high" ]; then find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist | sed 's#\(.*\)/.*#\1#' | parallel --gnu --keep-order 'echo "Running {} tests"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev install; phpunit --exclude-group tty,benchmark,intl-data;'; fi;
44-
- if [ "$components" = "low" ]; then find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist | sed 's#\(.*\)/.*#\1#' | parallel --gnu --keep-order -j50% 'echo "Running {} tests"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev --prefer-lowest --prefer-stable update; phpunit --exclude-group tty,benchmark,intl-data;'; fi;
41+
- if [ "$components" = "no" ]; then ls -d src/Symfony/*/* | parallel --gnu --keep-order 'echo -e "\\nRunning {} tests"; phpunit --exclude-group tty,benchmark,intl-data {} || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
42+
- if [ "$components" = "no" ]; then echo -e "\\nRunning tests requiring tty"; phpunit --group tty || (echo -e "\\e[41mKO\\e[0m tty group" && $(exit 1)); fi;
43+
- if [ "$components" = "high" ]; then find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist | sed 's#\(.*\)/.*#\1#' | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev update; phpunit --exclude-group tty,benchmark,intl-data || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;
44+
- if [ "$components" = "low" ]; then find src/Symfony -mindepth 3 -type f -name phpunit.xml.dist | sed 's#\(.*\)/.*#\1#' | parallel --gnu --keep-order -j25% 'echo -e "\\nRunning {} tests"; cd {}; COMPOSER_ROOT_VERSION=dev-master composer --prefer-source --dev --prefer-lowest --prefer-stable update; phpunit --exclude-group tty,benchmark,intl-data || (echo -e "\\e[41mKO\\e[0m {}" && $(exit 1));'; fi;

‎composer.json

Copy file name to clipboardExpand all lines: composer.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717
],
1818
"require": {
1919
"php": ">=5.3.3",
20-
"doctrine/common": "~2.2",
21-
"twig/twig": "~1.12",
20+
"doctrine/common": "~2.3",
21+
"twig/twig": "~1.12,>=1.12.3",
2222
"psr/log": "~1.0"
2323
},
2424
"replace": {

‎src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/DefaultCsrfProviderTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Form/Tests/Extension/Csrf/CsrfProvider/DefaultCsrfProviderTest.php
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
/**
1717
* @runTestsInSeparateProcesses
18+
* @preserveGlobalState disabled
1819
*/
1920
class DefaultCsrfProviderTest extends \PHPUnit_Framework_TestCase
2021
{
@@ -24,6 +25,7 @@ public static function setUpBeforeClass()
2425
{
2526
ini_set('session.save_handler', 'files');
2627
ini_set('session.save_path', sys_get_temp_dir());
28+
ini_set('error_reporting', -1 & ~E_USER_DEPRECATED);
2729
}
2830

2931
protected function setUp()

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeFileSessionHandlerTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
* @author Drak <drak@zikula.org>
2121
*
2222
* @runTestsInSeparateProcesses
23+
* @preserveGlobalState disabled
2324
*/
2425
class NativeFileSessionHandlerTest extends \PHPUnit_Framework_TestCase
2526
{

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NativeSessionHandlerTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* @author Drak <drak@zikula.org>
2020
*
2121
* @runTestsInSeparateProcesses
22+
* @preserveGlobalState disabled
2223
*/
2324
class NativeSessionHandlerTest extends \PHPUnit_Framework_TestCase
2425
{

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/NullSessionHandlerTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
* @author Drak <drak@zikula.org>
2222
*
2323
* @runTestsInSeparateProcesses
24+
* @preserveGlobalState disabled
2425
*/
2526
class NullSessionHandlerTest extends \PHPUnit_Framework_TestCase
2627
{

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/NativeSessionStorageTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* These tests require separate processes.
2828
*
2929
* @runTestsInSeparateProcesses
30+
* @preserveGlobalState disabled
3031
*/
3132
class NativeSessionStorageTest extends \PHPUnit_Framework_TestCase
3233
{

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/PhpBridgeSessionStorageTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
* These tests require separate processes.
2323
*
2424
* @runTestsInSeparateProcesses
25+
* @preserveGlobalState disabled
2526
*/
2627
class PhpBridgeSessionStorageTest extends \PHPUnit_Framework_TestCase
2728
{

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/AbstractProxyTest.php
+6Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ public function testIsActivePhp53()
9696

9797
/**
9898
* @runInSeparateProcess
99+
* @preserveGlobalState disabled
99100
*/
100101
public function testIsActivePhp54()
101102
{
@@ -122,6 +123,7 @@ public function testSetActivePhp53()
122123

123124
/**
124125
* @runInSeparateProcess
126+
* @preserveGlobalState disabled
125127
* @expectedException \LogicException
126128
*/
127129
public function testSetActivePhp54()
@@ -135,6 +137,7 @@ public function testSetActivePhp54()
135137

136138
/**
137139
* @runInSeparateProcess
140+
* @preserveGlobalState disabled
138141
*/
139142
public function testName()
140143
{
@@ -159,6 +162,7 @@ public function testNameExceptionPhp53()
159162

160163
/**
161164
* @runInSeparateProcess
165+
* @preserveGlobalState disabled
162166
* @expectedException \LogicException
163167
*/
164168
public function testNameExceptionPhp54()
@@ -173,6 +177,7 @@ public function testNameExceptionPhp54()
173177

174178
/**
175179
* @runInSeparateProcess
180+
* @preserveGlobalState disabled
176181
*/
177182
public function testId()
178183
{
@@ -197,6 +202,7 @@ public function testIdExceptionPhp53()
197202

198203
/**
199204
* @runInSeparateProcess
205+
* @preserveGlobalState disabled
200206
* @expectedException \LogicException
201207
*/
202208
public function testIdExceptionPhp54()

‎src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Proxy/SessionHandlerProxyTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
* @author Drak <drak@zikula.org>
2020
*
2121
* @runTestsInSeparateProcesses
22+
* @preserveGlobalState disabled
2223
*/
2324
class SessionHandlerProxyTest extends \PHPUnit_Framework_TestCase
2425
{

‎src/Symfony/Component/Intl/Tests/DateFormatter/Verification/IntlDateFormatterTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Intl/Tests/DateFormatter/Verification/IntlDateFormatterTest.php
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ protected function setUp()
3636
* time zone, this test would use it too if not running in a separated process.
3737
*
3838
* @runInSeparateProcess
39+
* @preserveGlobalState disabled
3940
*/
4041
public function testFormatWithTimezoneFromEnvironmentVariable()
4142
{

‎src/Symfony/Component/Locale/composer.json

Copy file name to clipboardExpand all lines: src/Symfony/Component/Locale/composer.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
],
1818
"require": {
1919
"php": ">=5.3.3",
20-
"symfony/intl": ">=2.3"
20+
"symfony/intl": "~2.3"
2121
},
2222
"autoload": {
2323
"psr-0": { "Symfony\\Component\\Locale\\": "" }

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.