assertSame('message', $ex->getMessage()); $this->assertSame('message', $ex->getValue()); } $value = new Vector([1, 2, 3]); try { throw new MadLispUserException($value); } catch (MadLispUserException $ex) { $this->assertSame($value, $ex->getValue()); } } }