Skip to content

Commit 37f7e31

Browse files
Merge branch '2.3' into 2.7
* 2.3: [tests] Use @requires annotation when possible [ci] Enable collecting and replaying skipped tests [Process] Workaround buggy PHP warning [Console] Add additional ways to detect OS400 platform [Yaml] Allow tabs before comments at the end of a line Conflicts: composer.json src/Symfony/Bridge/Doctrine/Tests/Logger/DbalLoggerTest.php src/Symfony/Bridge/Monolog/composer.json src/Symfony/Bridge/Twig/composer.json src/Symfony/Bundle/FrameworkBundle/composer.json src/Symfony/Bundle/SecurityBundle/composer.json src/Symfony/Component/Asset/composer.json src/Symfony/Component/ClassLoader/Tests/LegacyApcUniversalClassLoaderTest.php src/Symfony/Component/Console/composer.json src/Symfony/Component/Debug/composer.json src/Symfony/Component/DomCrawler/composer.json src/Symfony/Component/EventDispatcher/composer.json src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/MongoDbSessionHandlerTest.php src/Symfony/Component/HttpFoundation/Tests/Session/Storage/Handler/PdoSessionHandlerTest.php src/Symfony/Component/HttpFoundation/composer.json src/Symfony/Component/Intl/composer.json src/Symfony/Component/Routing/composer.json src/Symfony/Component/Security/composer.json src/Symfony/Component/Serializer/composer.json src/Symfony/Component/Templating/composer.json src/Symfony/Component/Translation/composer.json src/Symfony/Component/Validator/composer.json
2 parents bd331ce + 772292b commit 37f7e31

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

Test/DoctrineTestHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ class DoctrineTestHelper
2929
*/
3030
public static function createTestEntityManager()
3131
{
32-
if (!class_exists('PDO') || !in_array('sqlite', \PDO::getAvailableDrivers())) {
33-
\PHPUnit_Framework_TestCase::markTestSkipped('This test requires SQLite support in your environment');
32+
if (!extension_loaded('pdo_sqlite')) {
33+
\PHPUnit_Framework_TestCase::markTestSkipped('Extension pdo_sqlite is required.');
3434
}
3535

3636
$config = new \Doctrine\ORM\Configuration();

Tests/Logger/DbalLoggerTest.php

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,11 @@ public function testLogLongString()
132132
));
133133
}
134134

135+
/**
136+
* @requires extension mbstring
137+
*/
135138
public function testLogUTF8LongString()
136139
{
137-
if (!function_exists('mb_detect_encoding')) {
138-
$this->markTestSkipped('Testing log shortening of utf8 charsets requires the mb_detect_encoding() function.');
139-
}
140-
141140
$logger = $this->getMock('Psr\\Log\\LoggerInterface');
142141

143142
$dbalLogger = $this

composer.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"doctrine/common": "~2.4"
2121
},
2222
"require-dev": {
23-
"symfony/phpunit-bridge": "~2.7",
2423
"symfony/stopwatch": "~2.2",
2524
"symfony/dependency-injection": "~2.2",
2625
"symfony/form": "~2.7,>=2.7.1",

phpunit.xml.dist

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,8 @@
2525
</exclude>
2626
</whitelist>
2727
</filter>
28+
29+
<listeners>
30+
<listener class="Symfony\Bridge\PhpUnit\SkippedTestsListener" />
31+
</listeners>
2832
</phpunit>

0 commit comments

Comments
 (0)