Completed
Push — develop ( 5df781...b9059c )
by Oyebanji Jacob
02:09
created
test/ModelTest.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -4,17 +4,17 @@  discard block
 block discarded – undo
4 4
 
5 5
 class ModelTest extends PHPUnit_Framework_TestCase
6 6
 {
7
-	protected $model;
7
+    protected $model;
8 8
 
9
-	public function setUp(){
10
-		$this->model =  $this->getMockForAbstractClass('Pyjac\ORM\Model');
11
-	}
9
+    public function setUp(){
10
+        $this->model =  $this->getMockForAbstractClass('Pyjac\ORM\Model');
11
+    }
12 12
 
13
-	public function testGetTableNameReturnsCorrectTableName()
13
+    public function testGetTableNameReturnsCorrectTableName()
14 14
     {
15 15
         $this->model->expects($this->any())
16
-             ->method('getTableName')
17
-             ->will($this->returnValue(strtolower(get_class($stub).'s')));
16
+                ->method('getTableName')
17
+                ->will($this->returnValue(strtolower(get_class($stub).'s')));
18 18
 
19 19
         $this->assertEquals($stub->getTableName(), strtolower(get_class($stub).'s'));
20 20
     }
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
     public function testGetTableNameReturnsCorrectTableName()
23 23
     {
24 24
         $this->model->expects($this->any())
25
-             ->method('getTableName')
26
-             ->will($this->returnValue(strtolower(get_class($stub).'s')));
25
+                ->method('getTableName')
26
+                ->will($this->returnValue(strtolower(get_class($stub).'s')));
27 27
 
28 28
         $this->assertEquals($stub->getTableName(), strtolower(get_class($stub).'s'));
29 29
     }
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -6,26 +6,26 @@
 block discarded – undo
6 6
 {
7 7
 	protected $model;
8 8
 
9
-	public function setUp(){
10
-		$this->model =  $this->getMockForAbstractClass('Pyjac\ORM\Model');
9
+	public function setUp() {
10
+		$this->model = $this->getMockForAbstractClass('Pyjac\ORM\Model');
11 11
 	}
12 12
 
13 13
 	public function testGetTableNameReturnsCorrectTableName()
14 14
     {
15 15
         $this->model->expects($this->any())
16 16
              ->method('getTableName')
17
-             ->will($this->returnValue(strtolower(get_class($stub).'s')));
17
+             ->will($this->returnValue(strtolower(get_class($stub) . 's')));
18 18
 
19
-        $this->assertEquals($stub->getTableName(), strtolower(get_class($stub).'s'));
19
+        $this->assertEquals($stub->getTableName(), strtolower(get_class($stub) . 's'));
20 20
     }
21 21
 
22 22
     public function testGetTableNameReturnsCorrectTableName()
23 23
     {
24 24
         $this->model->expects($this->any())
25 25
              ->method('getTableName')
26
-             ->will($this->returnValue(strtolower(get_class($stub).'s')));
26
+             ->will($this->returnValue(strtolower(get_class($stub) . 's')));
27 27
 
28
-        $this->assertEquals($stub->getTableName(), strtolower(get_class($stub).'s'));
28
+        $this->assertEquals($stub->getTableName(), strtolower(get_class($stub) . 's'));
29 29
     }
30 30
 
31 31
 }
32 32
\ No newline at end of file
Please login to merge, or discard this patch.