Răsfoiți Sursa

tests: substitute ::class constants with strings to support php 5.4

Fabian Peter Hammerle 8 ani în urmă
părinte
comite
1b610b6873
1 a modificat fișierele cu 2 adăugiri și 2 ștergeri
  1. 2 2
      tests/SubjectTest.php

+ 2 - 2
tests/SubjectTest.php

@@ -103,13 +103,13 @@ class SubjectTest extends TestCase
     public function testSetIdentityInvalidType()
     {
         $s = new Subject;
-        $this->setExpectedException(\InvalidArgumentException::class);
+        $this->setExpectedException('\InvalidArgumentException');
         $s->identity = new DummyUser;
     }
 
     public function testConstructInvalidType()
     {
-        $this->setExpectedException(\InvalidArgumentException::class);
+        $this->setExpectedException('\InvalidArgumentException');
         new Subject(new DummyUser);
     }