style fixes
This commit is contained in:
+15
-2
@@ -1,4 +1,6 @@
|
||||
<?php declare(strict_types=1);
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
use PHPUnit\Framework\TestCase;
|
||||
|
||||
if (!defined('ABSPATH')) {
|
||||
@@ -31,4 +33,15 @@ final class rewriteTest extends TestCase
|
||||
$postgresql = pg4wp_rewrite($sql);
|
||||
$this->assertSame($postgresql, $expected);
|
||||
}
|
||||
}
|
||||
|
||||
protected function setUp(): void
|
||||
{
|
||||
global $wpdb;
|
||||
$wpdb = new class () {
|
||||
public $categories = "wp_categories";
|
||||
public $comments = "wp_comments";
|
||||
public $prefix = "wp_";
|
||||
public $options = "wp_options";
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user