/** * @test * @group nameid */ public function the_format_can_be_retrieved() { $nameIdFormat = NameIdFormat::unspecified(); $this->assertEquals(NameIdFormat::UNSPECIFIED, $nameIdFormat->getFormat()); }
/** * @test * @group nameid */ public function deserializing_a_serialized_name_id_format_list_results_in_an_equal_value_object() { $formatOne = NameIdFormat::transient(); $formatTwo = NameIdFormat::unspecified(); $original = new NameIdFormatList(array($formatOne, $formatTwo)); $deserialized = NameIdFormatList::deserialize($original->serialize()); $this->assertTrue($original->equals($deserialized)); }