Browse Source

adds ini and skips for testing this module alone

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@1497 c26eb9a1-5813-0410-bd6c-c2e55f420ca7
master
Xuefer 7 years ago
parent
commit
ffdf7568e5
  1. 6
      tests/xcache_deep_copy_arg_info.phpt
  2. 6
      tests/xcache_deep_copy_opcodes_for_const.phpt
  3. 6
      tests/xcache_deep_copy_static_variables.phpt
  4. 3
      tests/xcache_include_absolute.phpt
  5. 3
      tests/xcache_include_relative_cwd.phpt
  6. 3
      tests/xcache_include_relative_file.phpt
  7. 3
      tests/xcache_is_autoglobal.phpt
  8. 4
      tests/xcache_shallow_copy_check_early_binding.phpt
  9. 4
      tests/xcache_var.phpt

6
tests/xcache_deep_copy_arg_info.phpt

@ -1,7 +1,13 @@
--TEST--
xcache requires deep copying arg info
--SKIPIF--
<?php
require("include-skipif.inc");
?>
--INI--
xcache.readonly_protection=0
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
function a($a = 1) {

6
tests/xcache_deep_copy_opcodes_for_const.phpt

@ -1,6 +1,12 @@
--TEST--
xcache requires deep copying opcodes for __FILE__ and __DIR__
--SKIPIF--
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
echo __FILE__, PHP_EOL;

6
tests/xcache_deep_copy_static_variables.phpt

@ -1,7 +1,13 @@
--TEST--
xcache requires deep copying static variables in shallow copy mode
--SKIPIF--
<?php
require("include-skipif.inc");
?>
--INI--
xcache.readonly_protection=0
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
static $a = array(1);

3
tests/xcache_include_absolute.phpt

@ -4,6 +4,9 @@ include absolute path
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
include __DIR__ . "/sub-a.inc";

3
tests/xcache_include_relative_cwd.phpt

@ -4,6 +4,9 @@ include relative to current working dir
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
chdir(__DIR__);

3
tests/xcache_include_relative_file.phpt

@ -4,6 +4,9 @@ include relative to current file
<?php
require("include-skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
include "sub-a.inc";

3
tests/xcache_is_autoglobal.phpt

@ -4,6 +4,9 @@ xcache_is_autoglobal
<?php
require("skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
var_dump(xcache_is_autoglobal("GLOBALS"));

4
tests/xcache_shallow_copy_check_early_binding.phpt

@ -2,10 +2,14 @@
xcache shallow copying precondition: early binding changes constant inside opcode for PHP5.2-
--SKIPIF--
<?php
require("include-skipif.inc");
if (version_compare(PHP_VERSION, "5.3", ">=")) {
die("skip only needed for PHP 5.2 or less");
}
?>
--INI--
xcache.test = 1
xcache.size = 32M
--FILE--
<?php
class A extends Exception {

4
tests/xcache_var.phpt

@ -4,6 +4,10 @@ xcache_set/get test
<?php
require("skipif.inc");
?>
--INI--
xcache.test = 1
xcache.size = 32M
xcache.var_size = 2M
--FILE--
<?php
var_dump(xcache_isset("a"));

Loading…
Cancel
Save