Passed
Branch tests-better-coverage (039fc0)
by Michael
09:41
created
tests/Doctrine/Tests/DBAL/Functional/TypeConversionTest.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         try {
41 41
             $this->_conn->getSchemaManager()->createTable($table);
42
-        } catch(\Exception $e) {
42
+        } catch (\Exception $e) {
43 43
 
44 44
         }
45 45
     }
@@ -51,21 +51,21 @@  discard block
 block discarded – undo
51 51
         $obj->bar = "baz";
52 52
 
53 53
         return array(
54
-            array('string',     'ABCDEFGaaaBBB', 'string'),
55
-            array('boolean',    true, 'bool'),
56
-            array('boolean',    false, 'bool'),
57
-            array('bigint',     12345678, 'string'),
58
-            array('smallint',   123, 'int'),
59
-            array('datetime',   new \DateTime('2010-04-05 10:10:10'), 'DateTime'),
54
+            array('string', 'ABCDEFGaaaBBB', 'string'),
55
+            array('boolean', true, 'bool'),
56
+            array('boolean', false, 'bool'),
57
+            array('bigint', 12345678, 'string'),
58
+            array('smallint', 123, 'int'),
59
+            array('datetime', new \DateTime('2010-04-05 10:10:10'), 'DateTime'),
60 60
             array('datetimetz', new \DateTime('2010-04-05 10:10:10'), 'DateTime'),
61
-            array('date',       new \DateTime('2010-04-05'), 'DateTime'),
62
-            array('time',       new \DateTime('1970-01-01 10:10:10'), 'DateTime'),
63
-            array('text',       str_repeat('foo ', 1000), 'string'),
64
-            array('array',      array('foo' => 'bar'), 'array'),
61
+            array('date', new \DateTime('2010-04-05'), 'DateTime'),
62
+            array('time', new \DateTime('1970-01-01 10:10:10'), 'DateTime'),
63
+            array('text', str_repeat('foo ', 1000), 'string'),
64
+            array('array', array('foo' => 'bar'), 'array'),
65 65
             array('json_array', array('foo' => 'bar'), 'array'),
66
-            array('object',     $obj, 'object'),
67
-            array('float',      1.5, 'float'),
68
-            array('decimal',    1.55, 'string'),
66
+            array('object', $obj, 'object'),
67
+            array('float', 1.5, 'float'),
68
+            array('decimal', 1.55, 'string'),
69 69
         );
70 70
     }
71 71
 
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         $typeInstance = Type::getType($type);
82 82
         $insertionValue = $typeInstance->convertToDatabaseValue($originalValue, $this->_conn->getDatabasePlatform());
83 83
 
84
-        $this->_conn->insert('type_conversion', array('id' => ++self::$typeCounter, $columnName => $insertionValue));
84
+        $this->_conn->insert('type_conversion', array('id' =>++self::$typeCounter, $columnName => $insertionValue));
85 85
 
86 86
         $sql = "SELECT " . $columnName . " FROM type_conversion WHERE id = " . self::$typeCounter;
87 87
         $actualDbValue = $typeInstance->convertToPHPValue($this->_conn->fetchColumn($sql), $this->_conn->getDatabasePlatform());
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/NamedParametersTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
     {
150 150
         parent::setUp();
151 151
 
152
-        if (! $this->_conn->getSchemaManager()->tablesExist('ddc1372_foobar')) {
152
+        if ( ! $this->_conn->getSchemaManager()->tablesExist('ddc1372_foobar')) {
153 153
             try {
154 154
                 $table = new Table('ddc1372_foobar');
155 155
                 $table->addColumn('id', 'integer');
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                     'foo' => 2,
191 191
                     'bar' => 2,
192 192
                 ]);
193
-            } catch(\Exception $e) {
193
+            } catch (\Exception $e) {
194 194
                 $this->fail($e->getMessage());
195 195
             }
196 196
         }
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @param array  $types
204 204
      * @param array  $expected
205 205
      */
206
-    public function testTicket($query,$params,$types,$expected)
206
+    public function testTicket($query, $params, $types, $expected)
207 207
     {
208 208
         $stmt   = $this->_conn->executeQuery($query, $params, $types);
209 209
         $result = $stmt->fetchAll(FetchMode::ASSOCIATIVE);
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
         parent::setUp();
13 13
         try {
14 14
             $this->_conn->exec($this->_conn->getDatabasePlatform()->getDropTableSQL("nontemporary"));
15
-        } catch(\Exception $e) {
15
+        } catch (\Exception $e) {
16 16
 
17 17
         }
18 18
     }
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
             try {
24 24
                 $tempTable = $this->_conn->getDatabasePlatform()->getTemporaryTableName("my_temporary");
25 25
                 $this->_conn->exec($this->_conn->getDatabasePlatform()->getDropTemporaryTableSQL($tempTable));
26
-            } catch(\Exception $e) { }
26
+            } catch (\Exception $e) { }
27 27
         }
28 28
 
29 29
         parent::tearDown();
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
         try {
101 101
             $this->_conn->exec($platform->getDropTemporaryTableSQL($tempTable));
102
-        } catch(\Exception $e) {
102
+        } catch (\Exception $e) {
103 103
 
104 104
         }
105 105
 
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLSrv/StatementTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     protected function setUp()
13 13
     {
14
-        if (!extension_loaded('sqlsrv')) {
14
+        if ( ! extension_loaded('sqlsrv')) {
15 15
             self::markTestSkipped('sqlsrv is not installed.');
16 16
         }
17 17
 
18 18
         parent::setUp();
19 19
 
20
-        if (!$this->_conn->getDriver() instanceof Driver) {
20
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
21 21
             self::markTestSkipped('sqlsrv only test');
22 22
         }
23 23
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLSrv/Driver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
 {
11 11
     protected function setUp()
12 12
     {
13
-        if (! extension_loaded('sqlsrv')) {
13
+        if ( ! extension_loaded('sqlsrv')) {
14 14
             $this->markTestSkipped('sqlsrv is not installed.');
15 15
         }
16 16
 
17 17
         parent::setUp();
18 18
 
19
-        if (! $this->_conn->getDriver() instanceof Driver) {
19
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
20 20
             $this->markTestSkipped('sqlsrv only test.');
21 21
         }
22 22
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOPgSql/DriverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
 {
16 16
     protected function setUp()
17 17
     {
18
-        if (! extension_loaded('pdo_pgsql')) {
18
+        if ( ! extension_loaded('pdo_pgsql')) {
19 19
             $this->markTestSkipped('pdo_pgsql is not installed.');
20 20
         }
21 21
 
22 22
         parent::setUp();
23 23
 
24
-        if (! $this->_conn->getDriver() instanceof Driver) {
24
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
25 25
             $this->markTestSkipped('pdo_pgsql only test.');
26 26
         }
27 27
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/StatementTest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@  discard block
 block discarded – undo
10 10
 {
11 11
     protected function setUp()
12 12
     {
13
-        if (! extension_loaded('sqlanywhere')) {
13
+        if ( ! extension_loaded('sqlanywhere')) {
14 14
             $this->markTestSkipped('sqlanywhere is not installed.');
15 15
         }
16 16
 
17 17
         parent::setUp();
18 18
 
19
-        if (! $this->_conn->getDriver() instanceof Driver) {
19
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
20 20
             $this->markTestSkipped('sqlanywhere only test.');
21 21
         }
22 22
     }
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
 
31 31
         $conn->connect();
32 32
 
33
-        self::assertTrue($conn->isConnected(),'No SQLAnywhere-Connection established');
33
+        self::assertTrue($conn->isConnected(), 'No SQLAnywhere-Connection established');
34 34
 
35 35
         $prepStmt = $conn->prepare('SELECT 1');
36
-        self::assertTrue($prepStmt->execute(),' Statement non-persistent failed');
36
+        self::assertTrue($prepStmt->execute(), ' Statement non-persistent failed');
37 37
     }
38 38
 
39 39
     public function testPersistentStatement()
@@ -45,10 +45,10 @@  discard block
 block discarded – undo
45 45
 
46 46
         $conn->connect();
47 47
 
48
-        self::assertTrue($conn->isConnected(),'No SQLAnywhere-Connection established');
48
+        self::assertTrue($conn->isConnected(), 'No SQLAnywhere-Connection established');
49 49
 
50 50
         $prepStmt = $conn->prepare('SELECT 1');
51
-        self::assertTrue($prepStmt->execute(),' Statement persistent failed');
51
+        self::assertTrue($prepStmt->execute(), ' Statement persistent failed');
52 52
     }
53 53
 
54 54
 }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/SQLAnywhere/DriverTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -11,13 +11,13 @@
 block discarded – undo
11 11
 {
12 12
     protected function setUp()
13 13
     {
14
-        if (! extension_loaded('sqlanywhere')) {
14
+        if ( ! extension_loaded('sqlanywhere')) {
15 15
             $this->markTestSkipped('sqlanywhere is not installed.');
16 16
         }
17 17
 
18 18
         parent::setUp();
19 19
 
20
-        if (! $this->_conn->getDriver() instanceof Driver) {
20
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
21 21
             $this->markTestSkipped('sqlanywhere only test.');
22 22
         }
23 23
     }
Please login to merge, or discard this patch.
tests/Doctrine/Tests/DBAL/Functional/Driver/PDOSqlsrv/Driver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,13 +10,13 @@
 block discarded – undo
10 10
 {
11 11
     protected function setUp()
12 12
     {
13
-        if (! extension_loaded('pdo_sqlsrv')) {
13
+        if ( ! extension_loaded('pdo_sqlsrv')) {
14 14
             $this->markTestSkipped('pdo_sqlsrv is not installed.');
15 15
         }
16 16
 
17 17
         parent::setUp();
18 18
 
19
-        if (! $this->_conn->getDriver() instanceof Driver) {
19
+        if ( ! $this->_conn->getDriver() instanceof Driver) {
20 20
             $this->markTestSkipped('pdo_sqlsrv only test.');
21 21
         }
22 22
     }
Please login to merge, or discard this patch.