public function __construct($reason, ConnectionInterface $target) { $this->_target = $target; parent::__construct($reason); }
public function testCanGetReasonMessageFromJson() { $reason = new Thing2(); $e = new RejectionException($reason); $this->assertContains("{}", $e->getMessage()); }