File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class ACLMetadataLoader
3737 public function registerRoleClass ($ class , $ shortName )
3838 {
3939 if (! is_subclass_of ($ class , 'MyCLabs\ACL\Model\Role ' )) {
40- throw new \InvalidArgumentException (' The given class doesn \'t extend MyCLabs\ACL\Model\Role ' );
40+ throw new \InvalidArgumentException (sprintf ( ' %s doesn \'t extend MyCLabs\ACL\Model\Role ', $ class ) );
4141 }
4242
4343 $ this ->roles [$ shortName ] = $ class ;
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ public function testRegisterRoleClass()
1919
2020 /**
2121 * @expectedException \InvalidArgumentException
22- * @expectedExceptionMessage The given class doesn't extend MyCLabs\ACL\Model\Role
22+ * @expectedExceptionMessage foo doesn't extend MyCLabs\ACL\Model\Role
2323 */
2424 public function testRegisterInvalidRoleClass ()
2525 {
You can’t perform that action at this time.
0 commit comments