/** * Test that output of marshal works as input for parse * * @return void */ public function testMarshalHasCorrectKeys() { $key1 = "testKey1"; $value1 = "testValue1"; $key2 = "testKey2"; $value2 = "testValue2"; $this->order->parse( array( $key1 => $value1, $key2 => $value2 ) ); $marshalData = $this->order->marshal(); //Testing keys $this->assertArrayHasKey($key1, $marshalData); $this->assertArrayHasKey($key2, $marshalData); //Testing values $this->assertEquals($value1, $marshalData[$key1]); $this->assertEquals($value2, $marshalData[$key2]); }