assertEquals($permDesc, $permDesc2); $this->assertNotEquals($permDesc, $permDesc3); } public function testFromStandalonePermission() { $permDescUnknown = PermissionDescription::fromStandalonePermission(-1); $permDescSelf = PermissionDescription::fromStandalonePermission(0); $this->assertNull($permDescUnknown); $this->assertNotNull($permDescSelf); } public function testFromGlobalPermission() { //$permDesc = PermissionDescription::fromGlobalPermission('view_profile'); $this->markTestIncomplete( 'For this test we need more stubs...' ); } public function testGetPermissionDescription() { // fromStandalonePermission uses get_permission_description(), so that will not help //$permDescSelf = PermissionDescription::fromStandalonePermission(0); //$permDescPublic = PermissionDescription::fromStandalonePermission(PERMS_PUBLIC); $this->markTestIncomplete( 'For this test we need a mock of PermissionDescription...' ); //$permDescSelf = //$this->assertEquals($permDescSelf->, 'Only me'); //$this->assertEquals($permDescPublic, 'Public'); } } }