assertContains('foo', $e->getMessage()); $this->assertEquals(['baz', 'bar'], $e->getReason()); } }