From ae94934e8271adb28f949c3bbd9ac811554fc3ea Mon Sep 17 00:00:00 2001 From: Roman Steiner Date: Tue, 3 Dec 2024 16:02:05 +0100 Subject: [PATCH] code style --- tests/Toolkit/Query/ParserTest.php | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/tests/Toolkit/Query/ParserTest.php b/tests/Toolkit/Query/ParserTest.php index 5e2a18e156..f5172625b4 100644 --- a/tests/Toolkit/Query/ParserTest.php +++ b/tests/Toolkit/Query/ParserTest.php @@ -1,34 +1,39 @@ parse(); - $this->assertEquals($ast, + $this->assertEquals( + $ast, new MemberAccessNode( - new VariableNode('user'), 'name' + new VariableNode('user'), + 'name' ) ); } - function testSquentialMemberAccess() { + public function testSquentialMemberAccess() + { $tokenizer = new Tokenizer('user.name("arg").age'); $ast = (new Parser($tokenizer))->parse(); - $this->assertEquals($ast, + $this->assertEquals( + $ast, new MemberAccessNode( new MemberAccessNode( new VariableNode('user'), 'name', - new ArgumentListNode([new LiteralNode("arg")]) + new ArgumentListNode([new LiteralNode('arg')]) ), 'age' )