public function testAsComplexReturnsCloneOfSelf() { $c = new ComplexType($this->createRationalType(1), $this->createRationalType(1)); $c2 = $c->asComplex(); $this->assertEquals($c, $c2); }