@@ -30,7 +30,8 @@ discard block |
||
30 | 30 | * @covers Table::prepare |
31 | 31 | * @covers Table::confirmValue |
32 | 32 | */ |
33 | - public function testprepare(){ |
|
33 | + public function testprepare() |
|
34 | + { |
|
34 | 35 | $_SERVER['REQUEST_URI'] = 'test.json'; |
35 | 36 | |
36 | 37 | //Table::prepare(true); |
@@ -52,7 +53,8 @@ discard block |
||
52 | 53 | * @covers Table::error |
53 | 54 | * @covers Table::config |
54 | 55 | */ |
55 | - public function testcreate(){ |
|
56 | + public function testcreate() |
|
57 | + { |
|
56 | 58 | $_SERVER['REQUEST_URI'] = 'test/users'; |
57 | 59 | |
58 | 60 | Table::prepare(); |
@@ -130,7 +132,8 @@ discard block |
||
130 | 132 | } |
131 | 133 | |
132 | 134 | |
133 | - public static function prepare($classMethod, $setOrCheck = false){ |
|
135 | + public static function prepare($classMethod, $setOrCheck = false) |
|
136 | + { |
|
134 | 137 | self::$pageExtension = pathinfo($_SERVER['REQUEST_URI'], PATHINFO_EXTENSION)?:null; |
135 | 138 | $continuePreparation = $setOrCheck === false; |
136 | 139 | if($setOrCheck === true){ |