File tree Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Expand file tree Collapse file tree 2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -29,8 +29,8 @@ class DoctrineTestHelper
29
29
*/
30
30
public static function createTestEntityManager ()
31
31
{
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. ' );
34
34
}
35
35
36
36
$ config = new \Doctrine \ORM \Configuration ();
Original file line number Diff line number Diff line change @@ -132,12 +132,11 @@ public function testLogLongString()
132
132
));
133
133
}
134
134
135
+ /**
136
+ * @requires extension mbstring
137
+ */
135
138
public function testLogUTF8LongString ()
136
139
{
137
- if (!function_exists ('mb_detect_encoding ' )) {
138
- $ this ->markTestSkipped ('Testing log shortening of utf8 charsets requires the mb_detect_encoding() function. ' );
139
- }
140
-
141
140
$ logger = $ this ->getMock ('Symfony \\Component \\HttpKernel \\Log \\LoggerInterface ' );
142
141
143
142
$ dbalLogger = $ this
You can’t perform that action at this time.
0 commit comments