public function testElementsOfWrongTypeAreIgnored($collection) { $this->assertEquals(0.333, ratio($collection), '', 0.001); }