瀏覽代碼

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

Fabian Peter Hammerle 8 年之前
父節點
當前提交
1b610b6873
共有 1 個文件被更改,包括 2 次插入2 次删除
  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);
     }