type = $this->getMockBuilder('ConfiguredType')->setMethods(array('getBaseType'))->getMock(); $scope = new user($this->type); $this->type->method('getBaseType')->willReturn($scope); } public function testPreTranslated() { $attr = new \LAM\TYPES\ListAttribute('#uid', $this->type); $this->assertEquals('User name', $attr->getAlias()); $this->assertEquals('uid', $attr->getAttributeName()); } public function testCustomAlias() { $attr = new \LAM\TYPES\ListAttribute('uid:My translation', $this->type); $this->assertEquals('My translation', $attr->getAlias()); $this->assertEquals('uid', $attr->getAttributeName()); } } ?>