Passed
Branch tests-better-coverage (039fc0)
by Michael
09:41
created
tests/Doctrine/Tests/DbalPerformanceTestListener.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
             // we identify perf tests by class, method, and dataset
34 34
             $class = str_replace('Doctrine\Tests\DBAL\Performance\\', '', get_class($test));
35 35
 
36
-            if (!isset($this->timings[$class])) {
36
+            if ( ! isset($this->timings[$class])) {
37 37
                 $this->timings[$class] = [];
38 38
             }
39 39
 
@@ -50,13 +50,13 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function __destruct()
52 52
     {
53
-        if (!empty($this->timings)) {
53
+        if ( ! empty($this->timings)) {
54 54
             // Report timings.
55 55
             print("\nPerformance test results:\n\n");
56 56
 
57
-            foreach($this->timings as $class => $tests) {
57
+            foreach ($this->timings as $class => $tests) {
58 58
                 printf("%s:\n", $class);
59
-                foreach($tests as $test => $time) {
59
+                foreach ($tests as $test => $time) {
60 60
                     printf("\t%s: %.3f seconds\n", $test, $time);
61 61
                 }
62 62
             }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Types/ObjectTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
 
45 45
     public function testConversionFailure()
46 46
     {
47
-        error_reporting( (E_ALL | E_STRICT) - \E_NOTICE );
47
+        error_reporting((E_ALL | E_STRICT) - \E_NOTICE);
48 48
         $this->expectException('Doctrine\DBAL\Types\ConversionException');
49 49
         $this->_type->convertToPHPValue('abcdefg', $this->_platform);
50 50
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Types/VarDateTimeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
     protected function setUp()
21 21
     {
22 22
         $this->_platform = new MockPlatform();
23
-        if (!Type::hasType('vardatetime')) {
23
+        if ( ! Type::hasType('vardatetime')) {
24 24
             Type::addType('vardatetime', 'Doctrine\DBAL\Types\VarDateTimeType');
25 25
         }
26 26
         $this->_type = Type::getType('vardatetime');
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Types/GuidTypeTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
 
42 42
         $mock = $this->createMock(get_class($this->_platform));
43 43
         $mock->expects($this->any())
44
-             ->method('hasNativeGuidType')
45
-             ->will($this->returnValue(true));
44
+                ->method('hasNativeGuidType')
45
+                ->will($this->returnValue(true));
46 46
 
47 47
         self::assertFalse($this->_type->requiresSQLCommentHint($mock));
48 48
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Types/VarDateTimeImmutableTypeTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     protected function setUp()
24 24
     {
25
-        if (! Type::hasType('vardatetime_immutable')) {
25
+        if ( ! Type::hasType('vardatetime_immutable')) {
26 26
             Type::addType('vardatetime_immutable', VarDateTimeImmutableType::class);
27 27
         }
28 28
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Driver/PDOPgSql/DriverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -108,11 +108,11 @@
 block discarded – undo
108 108
      */
109 109
     private function skipWhenNotUsingPhp56AndPdoPgsql()
110 110
     {
111
-        if (! defined('PDO::PGSQL_ATTR_DISABLE_PREPARES')) {
111
+        if ( ! defined('PDO::PGSQL_ATTR_DISABLE_PREPARES')) {
112 112
             $this->markTestSkipped('Test requires PHP 5.6+');
113 113
         }
114 114
 
115
-        if (! (isset($GLOBALS['db_type']) && $GLOBALS['db_type'] === 'pdo_pgsql')) {
115
+        if ( ! (isset($GLOBALS['db_type']) && $GLOBALS['db_type'] === 'pdo_pgsql')) {
116 116
             $this->markTestSkipped('Test enabled only when using pdo_pgsql specific phpunit.xml');
117 117
         }
118 118
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             ->with(
55 55
                 $this->equalTo(3),
56 56
                 $this->equalTo($params[2])
57
-          );
57
+            );
58 58
 
59 59
         // can't pass to constructor since we don't have a real database handle,
60 60
         // but execute must check the connection for the executeMode
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 {
12 12
     protected function setUp()
13 13
     {
14
-        if (!extension_loaded('oci8')) {
14
+        if ( ! extension_loaded('oci8')) {
15 15
             $this->markTestSkipped('oci8 is not installed.');
16 16
         }
17 17
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Driver/Mysqli/MysqliConnectionTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
         parent::setUp();
29 29
 
30
-        if (! $this->_conn->getDatabasePlatform() instanceof MySqlPlatform) {
30
+        if ( ! $this->_conn->getDatabasePlatform() instanceof MySqlPlatform) {
31 31
             $this->markTestSkipped('MySQL only test.');
32 32
         }
33 33
 
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function testRestoresErrorHandlerOnException()
45 45
     {
46
-        $handler = function () { self::fail('Never expected this to be called'); };
46
+        $handler = function() { self::fail('Never expected this to be called'); };
47 47
         $default_handler = set_error_handler($handler);
48 48
 
49 49
         try {
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 $this->_conn->exec($sql);
33 33
             }
34 34
 
35
-        } catch(\Exception $e) {
35
+        } catch (\Exception $e) {
36 36
         }
37 37
         $this->generator = new TableGenerator($this->_conn);
38 38
     }
Please login to merge, or discard this patch.