function let() { if (!class_exists('\\Error')) { throw new SkippingException('The class Error, introduced in PHP 7, does not exist'); } $this->beConstructedWith($this->error = new \Error('This is an error', 42)); }