storage->store( 23, $originalObj ); $restoredObj = $this->storage->restore( 23 ); $this->assertEquals( $originalObj, $restoredObj ); } public function testStoreObjectFailure() { $originalObj = new stdClass(); try { $this->storage->store( 23, $originalObj ); $this->fail( "ezcCacheInvalidDataException not thrown on attempt to store stdClass." ); } catch ( ezcCacheInvalidDataException $e ) {} } } ?>