Extends
lithium\test\Unit
Tests writing and reading for single and multiple items.
Returns
voidSource
public function testWriteRead() {
$data = '/postalCode en_US/';
Catalog::write('runtime', 'validation.postalCode', 'en_US', $data);
$result = Catalog::read('runtime', 'validation.postalCode', 'en_US');
$this->assertEqual($data, $result);
$this->tearDown();
$this->setUp();
$data = array(
'GRD' => 'Griechische Drachme',
'DKK' => 'Dänische Krone'
);
Catalog::write('runtime', 'currency', 'de', $data);
$result = Catalog::read('runtime', 'currency', 'de');
$this->assertEqual($data, $result);
}