node = new Average(self::OUTCOME, self::IMPURITY, self::N); } /** * @test */ public function build() : void { $this->assertInstanceOf(Average::class, $this->node); $this->assertInstanceOf(Outcome::class, $this->node); $this->assertInstanceOf(Decision::class, $this->node); $this->assertInstanceOf(Node::class, $this->node); } /** * @test */ public function outcome() : void { $this->assertSame(self::OUTCOME, $this->node->outcome()); } /** * @test */ public function impurity() : void { $this->assertSame(self::IMPURITY, $this->node->impurity()); } /** * @test */ public function n() : void { $this->assertSame(self::N, $this->node->n()); } }