public function testGetPercentageStartsFemale() { $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->setGenderStartsFemale($num)); $this->assertEquals($num, $this->instance->getGenderStartsFemale()); $this->assertEquals($expected, $this->instance->getPercentageStartsFemale()); }