/** * @test * @group entity */ public function a_valid_descriptor_creates_an_entity() { $entity = Entity::fromDescriptor(array('UM', 'sp')); $same = new Entity(new EntityId('UM'), EntityType::SP()); $otherType = Entity::fromDescriptor(array('UM', 'idp')); $this->assertTrue($entity->isServiceProvider()); $this->assertTrue($entity->equals($same)); $this->assertFalse($entity->equals($otherType)); }