/** * @expectedException Chippyash\Type\Exceptions\NotRealComplexException * @expectedExceptionMessage Not a Real complex type */ public function testAsFloatTypeForNonRealThrowsException() { $t = new ComplexType($this->createRationalType(2), $this->createRationalType(1)); $r = $t->asFloatType(); }