Example #1
0
 /**
  * Tests getting exception line presentation
  * @covers \Copycat\System\Exception::getPresentation()
  */
 public function testGetPresentation()
 {
     $line = '[' . $this->exception->getCode() . '] ' . get_class($this->exception) . ' ' . $this->exception->getMessage() . ' in ' . $this->exception->getFile() . ' on ' . $this->exception->getLine();
     $this->assertInternalType('string', $this->exception->getPresentation());
     $this->assertEquals($line, $this->exception->getPresentation());
 }