<?php

class returnMetaArray extends WP_UnitTestCase {

	function testMetaArray() {

		// Create post
		$post_id = $this->factory->post->create();

		// Value that we want to same and then look for.
		$value = array(
			'foo',
			'bar'
		);

		// Save the meta field
		$value_saved = update_post_meta($post_id, 'sampleValue', $value);

		// Full post
		$full_post = get_post($post_id, 'object', 'edit');

		// Compare the values.
		$this->assertEquals($value, $full_post->sampleValue);
	}
}

?>