Explorar o código

phpunit compatibility

El RIDO %!s(int64=4) %!d(string=hai) anos
pai
achega
5c61a442a0
Modificáronse 1 ficheiros con 2 adicións e 8 borrados
  1. 2 8
      tst/ModelTest.php

+ 2 - 8
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);