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