/** * @dataProvider polars */ public function testAsPolarReturnsCorrectValues(ComplexType $c, $r, $t) { $polar = $c->asPolar(); $this->assertEquals($r, (string) $polar['radius']); $this->assertEquals($t, (string) $polar['theta']); }