@@ -4,17 +4,17 @@ discard block |
||
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($this->model).'s'))); |
|
16 | + ->method('getTableName') |
|
17 | + ->will($this->returnValue(strtolower(get_class($this->model).'s'))); |
|
18 | 18 | |
19 | 19 | $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s')); |
20 | 20 | } |
@@ -22,8 +22,8 @@ discard block |
||
22 | 22 | public function testGetTableNameReturnsCorrectTableName2() |
23 | 23 | { |
24 | 24 | $this->model->expects($this->any()) |
25 | - ->method('getTableName') |
|
26 | - ->will($this->returnValue(strtolower(get_class($this->model).'s'))); |
|
25 | + ->method('getTableName') |
|
26 | + ->will($this->returnValue(strtolower(get_class($this->model).'s'))); |
|
27 | 27 | |
28 | 28 | $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s')); |
29 | 29 | } |
@@ -6,26 +6,26 @@ |
||
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($this->model).'s'))); |
|
17 | + ->will($this->returnValue(strtolower(get_class($this->model) . 's'))); |
|
18 | 18 | |
19 | - $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s')); |
|
19 | + $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model) . 's')); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | public function testGetTableNameReturnsCorrectTableName2() |
23 | 23 | { |
24 | 24 | $this->model->expects($this->any()) |
25 | 25 | ->method('getTableName') |
26 | - ->will($this->returnValue(strtolower(get_class($this->model).'s'))); |
|
26 | + ->will($this->returnValue(strtolower(get_class($this->model) . 's'))); |
|
27 | 27 | |
28 | - $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model).'s')); |
|
28 | + $this->assertEquals($this->model->getTableName(), strtolower(get_class($this->model) . 's')); |
|
29 | 29 | } |
30 | 30 | |
31 | 31 | } |
32 | 32 | \ No newline at end of file |
@@ -4,7 +4,7 @@ |
||
4 | 4 | |
5 | 5 | interface DatabaseConnectionInterface |
6 | 6 | { |
7 | - /** |
|
7 | + /** |
|
8 | 8 | * Get the instance of the class. |
9 | 9 | * |
10 | 10 | * @return Pyjac\ORM\DatabaseConnection |