Don't rely on shallow_class decls being available in NastInitCheck
[hiphop-php.git] / hphp / test / ext / test_ext_apc.cpp
blob332d3af931442053b093d4bdf9f459c675e9809a
1 /*
2 +----------------------------------------------------------------------+
3 | HipHop for PHP |
4 +----------------------------------------------------------------------+
5 | Copyright (c) 2010-present Facebook, Inc. (http://www.facebook.com) |
6 +----------------------------------------------------------------------+
7 | This source file is subject to version 3.01 of the PHP license, |
8 | that is bundled with this package in the file LICENSE, and is |
9 | available through the world-wide-web at the following url: |
10 | http://www.php.net/license/3_01.txt |
11 | If you did not receive a copy of the PHP license and are unable to |
12 | obtain it through the world-wide-web, please send a note to |
13 | license@php.net so we can mail you a copy immediately. |
14 +----------------------------------------------------------------------+
17 #include "hphp/test/ext/test_ext_apc.h"
18 #include "hphp/runtime/ext/apc/ext_apc.h"
20 ///////////////////////////////////////////////////////////////////////////////
22 bool TestExtApc::RunTests(const std::string &which) {
23 bool ret = true;
24 RUN_TEST(test_apc_reserialize);
25 return ret;
28 ///////////////////////////////////////////////////////////////////////////////
30 bool TestExtApc::test_apc_reserialize() {
32 String str = "V:6:\"Vector\":3:{i:1;i:2;i:3;}";
33 String res = apc_reserialize(str);
34 VS(res, str);
37 String str = "K:3:\"Map\":2:{s:1:\"a\";i:1;s:1:\"b\";i:2;}";
38 String res = apc_reserialize(str);
39 VS(res, str);
41 return Count(true);