public function testGetPercentageStartsMale() { $starts = 100; $num = (int) rand(1, 50); $expected = round($num / $starts * 100, AnalyticsExport::PERCENTAGE_PRECISION); $this->assertInstanceOf(AnalyticsExport::class, $this->instance->setStarts($starts)); $this->assertEquals($starts, $this->instance->getStarts()); $this->assertInstanceOf(AnalyticsExport::class, $this->instance->setGenderStartsMale($num)); $this->assertEquals($num, $this->instance->getGenderStartsMale()); $this->assertEquals($expected, $this->instance->getPercentageStartsMale()); }