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