@@ -19,7 +19,7 @@ discard block |
||
| 19 | 19 | * Prerquisites for the Unit Tests. |
| 20 | 20 | */ |
| 21 | 21 | public static function setUpBeforeClass(): void { |
| 22 | - self::$ci =& get_instance(); |
|
| 22 | + self::$ci = & get_instance(); |
|
| 23 | 23 | self::$ci->load->database('mysqli://root@localhost/test_db'); |
| 24 | 24 | $queries = [ |
| 25 | 25 | "CREATE TABLE IF NOT EXISTS admins (id INT(7) AUTO_INCREMENT PRIMARY KEY, name VARCHAR(20) NOT NULL, password TEXT NOT NULL) Engine=InnoDB;", |
@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | */ |
| 67 | 67 | public function testEmptyBlog(): void { |
| 68 | 68 | self::$ci->blogger->setBlog("test_blog"); |
| 69 | - $this->setOutputCallback(function ($output) { |
|
| 69 | + $this->setOutputCallback(function($output) { |
|
| 70 | 70 | $this->assertRegExp("/<h3 class=\"w3-center w3-margin\">No Posts.<\/h3>/", $output); |
| 71 | 71 | $this->assertRegExp("/<div class=\"w3-padding\">/", $output); |
| 72 | 72 | }); |
@@ -84,7 +84,7 @@ discard block |
||
| 84 | 84 | public function testEditor(): void { |
| 85 | 85 | |
| 86 | 86 | // === Collect Output === |
| 87 | - $this->setOutputCallback(function () {}); |
|
| 87 | + $this->setOutputCallback(function() {}); |
|
| 88 | 88 | $this->assertTrue(self::$ci->blogger->loadEditor("my_callback")); // Outputs Editor HTML. |
| 89 | 89 | $o = $this->getActualOutput(); |
| 90 | 90 | // ==/ Collect Output === |
@@ -97,7 +97,7 @@ discard block |
||
| 97 | 97 | $this->assertRegExp("/\/my_callback/", $o); |
| 98 | 98 | |
| 99 | 99 | // Reset Output Callback. |
| 100 | - $this->setOutputCallback(function ($o) { return $o;}); |
|
| 100 | + $this->setOutputCallback(function($o) { return $o; }); |
|
| 101 | 101 | |
| 102 | 102 | $this->expectOutputRegex("/value=\"1\"\/>/"); |
| 103 | 103 | $this->assertTrue(self::$ci->blogger->loadEditor("my_callback", 1)); // Outputs Editor HTML. |
@@ -225,7 +225,7 @@ discard block |
||
| 225 | 225 | */ |
| 226 | 226 | public function testEditPostUI(): void { |
| 227 | 227 | // === Collect Output === |
| 228 | - $this->setOutputCallback(function () {}); |
|
| 228 | + $this->setOutputCallback(function() {}); |
|
| 229 | 229 | $this->assertTrue(self::$ci->blogger->loadEditor("a_callback", 1)); // Outputs Editor HTML. |
| 230 | 230 | $o = $this->getActualOutput(); |
| 231 | 231 | // ==/ Collect Output === |