From 5c61a442a081476f85e2a68a23b58837d44e369c Mon Sep 17 00:00:00 2001 From: El RIDO Date: Thu, 7 Oct 2021 22:36:11 +0200 Subject: [PATCH] phpunit compatibility --- tst/ModelTest.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/tst/ModelTest.php b/tst/ModelTest.php index f947c291..751d3a8b 100644 --- a/tst/ModelTest.php +++ b/tst/ModelTest.php @@ -329,22 +329,16 @@ class ModelTest extends TestCase $paste->get(); } - /** - * @expectedException Exception - * @expectedExceptionCode 75 - */ public function testInvalidPasteFormat() { $pasteData = Helper::getPastePost(); $pasteData['adata'][1] = 'format does not exist'; $paste = $this->_model->getPaste(); + $this->expectException(Exception::class); + $this->expectExceptionCode(75); $paste->setData($pasteData); } - /** - * @expectedException Exception - * @expectedExceptionCode 60 - */ public function testInvalidPasteId() { $this->expectException(Exception::class);