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