Skip to content

Commit

Permalink
fix phpcpd errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jwalits committed Sep 4, 2023
1 parent 31d29a7 commit 1817c14
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions tests/tool_excimer_flamed3_node_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,25 +63,31 @@ public function test_add_excimer_trace_tail(): void {

$trace = [['function' => 'a'], ['function' => 'd'], ['function' => 'e']];
$node->add_excimer_trace_tail($trace, 1);
$nodechildname = $node->children[0]->name;
$nodedoublechildname = $node->children[0]->children[0]->name;
$nodetriplechildname = $node->children[0]->children[0]->children[0]->name;
$this->assertEquals(3, $node->value);
$this->assertEquals(1, count($node->children));
$this->assertEquals('a', $node->children[0]->name);
$this->assertEquals('a', $nodechildname);
$this->assertEquals(2, $node->children[0]->value);
$this->assertEquals('b', $node->children[0]->children[0]->name);
$this->assertEquals('c', $node->children[0]->children[0]->children[0]->name);
$this->assertEquals('b', $nodedoublechildname);
$this->assertEquals('c', $nodetriplechildname);
$this->assertEquals('a', $node->children[0]->name);
$this->assertEquals('d', $node->children[0]->children[1]->name);
$this->assertEquals('e', $node->children[0]->children[1]->children[0]->name);

$trace = [['function' => 'm'], ['function' => 'n'], ['function' => 'e']];
$node->add_excimer_trace_tail($trace, 1);
$nodechildname = $node->children[0]->name;
$nodedoublechildname = $node->children[0]->children[0]->name;
$nodetriplechildname = $node->children[0]->children[0]->children[0]->name;
$this->assertEquals(4, $node->value);
$this->assertEquals(2, count($node->children));
$this->assertEquals('a', $node->children[0]->name);
$this->assertEquals('a', $nodechildname);
$this->assertEquals(2, $node->children[0]->value);
$this->assertEquals('b', $node->children[0]->children[0]->name);
$this->assertEquals('c', $node->children[0]->children[0]->children[0]->name);
$this->assertEquals('a', $node->children[0]->name);
$this->assertEquals('b', $nodedoublechildname);
$this->assertEquals('c', $nodetriplechildname);
$this->assertEquals('a', $nodechildname);
$this->assertEquals('d', $node->children[0]->children[1]->name);
$this->assertEquals('e', $node->children[0]->children[1]->children[0]->name);
$this->assertEquals('m', $node->children[1]->name);
Expand Down

0 comments on commit 1817c14

Please sign in to comment.