public function testDoesExistFalse() { $this->connection->getJob(Argument::any())->willThrow(new NotFoundException(null))->shouldBeCalledTimes(1); $job = $this->getJob($this->connection); $this->assertFalse($job->exists()); }