Update ely/php-code-style and run updated CS fixer

This commit is contained in:
ErickSkrauch
2019-02-26 02:26:02 +03:00
parent ea4ebd19ef
commit b20825a051
67 changed files with 250 additions and 252 deletions

View File

@@ -9,12 +9,12 @@ class RequestParserTest extends TestCase {
public function testParse() {
$parser = new RequestParser();
$_POST = ['from' => 'post'];
$this->assertEquals(['from' => 'post'], $parser->parse('from=post', ''));
$this->assertEquals(['from' => 'post'], $parser->parse('', ''));
$this->assertSame(['from' => 'post'], $parser->parse('from=post', ''));
$this->assertSame(['from' => 'post'], $parser->parse('', ''));
$_POST = [];
$this->assertEquals(['from' => 'json'], $parser->parse('{"from":"json"}', ''));
$this->assertEquals(['from' => 'body'], $parser->parse('from=body', ''));
$this->assertEquals(['onlykey' => ''], $parser->parse('onlykey', ''));
$this->assertSame(['from' => 'json'], $parser->parse('{"from":"json"}', ''));
$this->assertSame(['from' => 'body'], $parser->parse('from=body', ''));
$this->assertSame(['onlykey' => ''], $parser->parse('onlykey', ''));
}
}