Completed
Push — develop ( a27bf4...826ff3 )
by Oyebanji Jacob
02:28
created
test/HelpersTest.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,14 +24,14 @@
 block discarded – undo
24 24
         ];
25 25
     }
26 26
     public function testContainsReturnsFalseWhenStringNotFoundInArray()
27
-     {
27
+        {
28 28
         $this->assertFalse(Helpers::contains("PHP rocks", $this->testArray));
29 29
 
30
-     }
30
+        }
31 31
 
32 32
     public function testContainsReturnsTrueWhenStringIsFoundInArray()
33
-     {
33
+        {
34 34
         $this->assertTrue(Helpers::contains("Error while sending", $this->testArray));
35 35
 
36
-     }
36
+        }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
test/DatabaseConnectionTest.php 2 patches
Indentation   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -5,28 +5,28 @@
 block discarded – undo
5 5
 
6 6
 class DatabaseConnectionTest extends PHPUnit_Framework_TestCase
7 7
 {
8
-	/**
9
-	 * instance of DatabaseConnection used in test.
10
-	 */
11
-	protected $databaseConnection;
8
+    /**
9
+     * instance of DatabaseConnection used in test.
10
+     */
11
+    protected $databaseConnection;
12 12
 
13 13
 
14 14
 
15
-	public function setUp(){
16
-		$databaseConnectionStringFactory =
15
+    public function setUp(){
16
+        $databaseConnectionStringFactory =
17 17
                         m::mock('Pyjac\ORM\DatabaseConnectionStringFactoryInterface');
18 18
         $databaseConnectionStringFactory->shouldReceive('createDatabaseSourceString')
19
-                                             ->with(['DRIVER' => 'sqlite', 'HOSTNAME' => '127.0.0.1', 'USERNAME' => '', 'PASSWORD' => '', 'DBNAME' => 'potatoORM', 'PORT' => '54320'])->once()->andReturn('sqlite::memory:');
19
+                                                ->with(['DRIVER' => 'sqlite', 'HOSTNAME' => '127.0.0.1', 'USERNAME' => '', 'PASSWORD' => '', 'DBNAME' => 'potatoORM', 'PORT' => '54320'])->once()->andReturn('sqlite::memory:');
20 20
 
21 21
         $this->databaseConnection = new DatabaseConnection($databaseConnectionStringFactory);
22
-	}
22
+    }
23 23
 
24
-	public function testCreateConnectionReturnsDatabaseConnection()
25
-	{
26
-		$dbInstance = $this->databaseConnection->createConnection('sqlite::memory:');
24
+    public function testCreateConnectionReturnsDatabaseConnection()
25
+    {
26
+        $dbInstance = $this->databaseConnection->createConnection('sqlite::memory:');
27 27
 
28
-		$this->assertInstanceOf('PDO', $dbInstance);
28
+        $this->assertInstanceOf('PDO', $dbInstance);
29 29
 
30
-	}
30
+    }
31 31
 	
32 32
 }
33 33
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
 
14 14
 
15
-	public function setUp(){
15
+	public function setUp() {
16 16
 		$databaseConnectionStringFactory =
17 17
                         m::mock('Pyjac\ORM\DatabaseConnectionStringFactoryInterface');
18 18
         $databaseConnectionStringFactory->shouldReceive('createDatabaseSourceString')
Please login to merge, or discard this patch.