From 6caf1143df94afe5f97a88b48087e44a10b83896 Mon Sep 17 00:00:00 2001 From: El RIDO Date: Sun, 6 Nov 2022 08:13:07 +0100 Subject: [PATCH] add a verification step for investigating failures in tests below PHP 7.2 --- tst/ModelTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tst/ModelTest.php b/tst/ModelTest.php index 5813d85..91da558 100644 --- a/tst/ModelTest.php +++ b/tst/ModelTest.php @@ -259,7 +259,7 @@ class ModelTest extends PHPUnit_Framework_TestCase $paste = $model->getPaste(); $paste->setData($pasteData); $paste->store(); - $paste->exists(); + $this->assertTrue($paste->exists(), 'paste exists before creating comment'); $comment = $paste->getComment(Helper::getPasteId()); $comment->setData($commentData);