Completed
Push — develop ( d7b1aa...a27bf4 )
by Oyebanji Jacob
02:23
created
test/DatabaseConnectionStringFactoryTest.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@  discard block
 block discarded – undo
5 5
 
6 6
 class DatabaseConnectionStringFactoryTest extends PHPUnit_Framework_TestCase
7 7
 {
8
-     /**
9
-     * The instance of DatabaseConnectionStringFactory used in the test.
10
-     *
11
-     * @var Pyjac\ORM\DatabaseConnectionStringFactory
12
-     */
8
+        /**
9
+         * The instance of DatabaseConnectionStringFactory used in the test.
10
+         *
11
+         * @var Pyjac\ORM\DatabaseConnectionStringFactory
12
+         */
13 13
     protected $databaseConnectionStringFactoryTest;
14 14
 
15 15
     /**
@@ -45,9 +45,9 @@  discard block
 block discarded – undo
45 45
         $this->assertEquals("sqlite::memory:", $dsn);
46 46
     }
47 47
 
48
-     /**
49
-     * @expectedException Pyjac\ORM\Exception\DatabaseDriverNotSupportedException
50
-     */
48
+        /**
49
+         * @expectedException Pyjac\ORM\Exception\DatabaseDriverNotSupportedException
50
+         */
51 51
     public function testCreateDatabaseSourceStringThrowsDatabaseDriverNotSupportedExceptionWhenUnknownDriverIsPassed()
52 52
     {
53 53
         $this->config['DRIVER']= 'pyjac';
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,21 +26,21 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function testCreateDatabaseSourceStringReturnsCorrectPostgresDatabaseSourceString()
28 28
     {
29
-        $this->config['DRIVER']= 'postgres';
29
+        $this->config['DRIVER'] = 'postgres';
30 30
         $dsn = $this->databaseConnectionStringFactory->createDatabaseSourceString($this->config);
31 31
         $this->assertEquals("pgsql:host=localhost;dbname=Pyjac", $dsn);
32 32
     }
33 33
 
34 34
     public function testCreateDatabaseSourceStringReturnsCorrectMYSqlDatabaseSourceString()
35 35
     {
36
-        $this->config['DRIVER']= 'mysql';
36
+        $this->config['DRIVER'] = 'mysql';
37 37
         $dsn = $this->databaseConnectionStringFactory->createDatabaseSourceString($this->config);
38 38
         $this->assertEquals("mysql:host=localhost;dbname=Pyjac", $dsn);
39 39
     }
40 40
 
41 41
     public function testCreateDatabaseSourceStringReturnsCorrectSQLiteDatabaseSourceString()
42 42
     {
43
-        $this->config['DRIVER']= 'sqlite';
43
+        $this->config['DRIVER'] = 'sqlite';
44 44
         $dsn = $this->databaseConnectionStringFactory->createDatabaseSourceString($this->config);
45 45
         $this->assertEquals("sqlite::memory:", $dsn);
46 46
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function testCreateDatabaseSourceStringThrowsDatabaseDriverNotSupportedExceptionWhenUnknownDriverIsPassed()
52 52
     {
53
-        $this->config['DRIVER']= 'pyjac';
53
+        $this->config['DRIVER'] = 'pyjac';
54 54
         $dsn = $this->databaseConnectionStringFactory->createDatabaseSourceString($this->config);
55 55
     }
56 56
 }
57 57
\ No newline at end of file
Please login to merge, or discard this patch.