public function testAverage() { $data = [8, 5, 7, 2, 3]; $node = MathNode::average(); $this->assertEquals(5, $node($data)); }