strategy = new Percentile(50.0); } /** * @test */ public function build() : void { $this->assertInstanceOf(Percentile::class, $this->strategy); $this->assertInstanceOf(Strategy::class, $this->strategy); } /** * @test */ public function fitGuess() : void { $this->strategy->fit([1, 2, 3, 4, 5]); $guess = $this->strategy->guess(); $this->assertEquals(3, $guess); } }