diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-07-20 18:00:32 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-07-20 18:00:43 +0200 |
commit | 378a05f0de7ff8874a2b97cdc78851eba748d91f (patch) | |
tree | 0919f5e7845bb9762248b7ddd4e8c4716f2bef6a /sapi/phpdbg/tests/commands | |
parent | 75a3de0cd8b79e2f813eaa663d90bb57edc7a146 (diff) | |
download | php-git-378a05f0de7ff8874a2b97cdc78851eba748d91f.tar.gz |
Move phpdbg tests to .phpt mechanism
Also add a few more in-depth tests related to $argv, breakpoints and uncaught exceptions
Diffstat (limited to 'sapi/phpdbg/tests/commands')
-rw-r--r-- | sapi/phpdbg/tests/commands/0001_basic.test | 8 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0002_set.test | 21 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0101_info.test | 19 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0102_print.test | 27 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0103_register.test | 28 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0104_clean.test | 14 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0105_clear.test | 18 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0106_compile.test | 18 | ||||
-rw-r--r-- | sapi/phpdbg/tests/commands/0107_compile.test | 17 |
9 files changed, 0 insertions, 170 deletions
diff --git a/sapi/phpdbg/tests/commands/0001_basic.test b/sapi/phpdbg/tests/commands/0001_basic.test deleted file mode 100644 index 08aa9ab664..0000000000 --- a/sapi/phpdbg/tests/commands/0001_basic.test +++ /dev/null @@ -1,8 +0,0 @@ -####################################################### -# name: basic -# purpose: check basic functionality of phpdbg console -# expect: TEST::EXACT -# options: -rr -####################################################### -# [Nothing to execute!] -####################################################### diff --git a/sapi/phpdbg/tests/commands/0002_set.test b/sapi/phpdbg/tests/commands/0002_set.test deleted file mode 100644 index 6a14a15adc..0000000000 --- a/sapi/phpdbg/tests/commands/0002_set.test +++ /dev/null @@ -1,21 +0,0 @@ -################################################# -# name: set -# purpose: tests for set commands -# expect: TEST::CISTRING -# options: -rr -################################################# -# setting prompt color -# setting error color -# setting notice color -# Failed to find breakpoint #0 -# [Oplog off] -# opened oplog test.log -# nothing -################################################# -set color prompt none -set color error none -set color notice none -set prompt promot> -set break 0 -set oplog -set oplog test.log diff --git a/sapi/phpdbg/tests/commands/0101_info.test b/sapi/phpdbg/tests/commands/0101_info.test deleted file mode 100644 index 397a45c992..0000000000 --- a/sapi/phpdbg/tests/commands/0101_info.test +++ /dev/null @@ -1,19 +0,0 @@ -################################################# -# name: info -# purpose: test info commands -# expect: TEST::FORMAT -# options: -rr -################################################# -#[User Classes (%d)] -#User Class test (3) -#|---- in phpdbginit code on line %d -################################################# -<: -class test { - public function testMethod(){} - private function testPrivateMethod(){} - protected function testProtectedMethod(){} -} -:> -info classes -q diff --git a/sapi/phpdbg/tests/commands/0102_print.test b/sapi/phpdbg/tests/commands/0102_print.test deleted file mode 100644 index 7078b13ea2..0000000000 --- a/sapi/phpdbg/tests/commands/0102_print.test +++ /dev/null @@ -1,27 +0,0 @@ -################################################# -# name: print -# purpose: test print commands -# expect: TEST::FORMAT -# options: -rr -################################################# -#[User Class: test (3 methods)] -#L%d-%d test::testMethod() %s - 0x%s + 1 ops -# L%d #0 RETURN null -#L%d-%d test::testPrivateMethod() %s - 0x%s + 1 ops -# L%d #0 RETURN null -#L%d-%d test::testProtectedMethod() %s - 0x%s + 1 ops -# L%d #0 RETURN null -#[User Method testMethod (1 ops)] -#L%d-%d test::testMethod() %s - 0x%s + 1 ops -# L%d #0 RETURN null -################################################# -<: -class test { - public function testMethod(){} - private function testPrivateMethod(){} - protected function testProtectedMethod(){} -} -:> -print class test -print method test::testMethod -q diff --git a/sapi/phpdbg/tests/commands/0103_register.test b/sapi/phpdbg/tests/commands/0103_register.test deleted file mode 100644 index 703a12f771..0000000000 --- a/sapi/phpdbg/tests/commands/0103_register.test +++ /dev/null @@ -1,28 +0,0 @@ -################################################# -# name: register -# purpose: test registration functions -# expect: TEST::FORMAT -# options: -rr -################################################# -#[Registered test_function] -#array(5) { -# [0]=> -# int(1) -# [1]=> -# int(2) -# [2]=> -# int(3) -# [3]=> -# int(4) -# [4]=> -# int(5) -#} -################################################# -<: -function test_function() { - var_dump(func_get_args()); -} -:> -R test_function -test_function 1 2 3 4 5 -q diff --git a/sapi/phpdbg/tests/commands/0104_clean.test b/sapi/phpdbg/tests/commands/0104_clean.test deleted file mode 100644 index 2c7660ad60..0000000000 --- a/sapi/phpdbg/tests/commands/0104_clean.test +++ /dev/null @@ -1,14 +0,0 @@ -################################################# -# name: clean -# purpose: test cleaning environment -# expect: TEST::FORMAT -# options: -rr -################################################# -#Cleaning Execution Environment -#Classes %d -#Functions %d -#Constants %d -#Includes %d -################################################# -clean -quit diff --git a/sapi/phpdbg/tests/commands/0105_clear.test b/sapi/phpdbg/tests/commands/0105_clear.test deleted file mode 100644 index 8ce1002491..0000000000 --- a/sapi/phpdbg/tests/commands/0105_clear.test +++ /dev/null @@ -1,18 +0,0 @@ -################################################# -# name: clear -# purpose: test clearing breakpoints -# expect: TEST::FORMAT -# options: -rr -################################################# -#Clearing Breakpoints -#File%w%d -#Functions%w%d -#Methods%w%d -#Oplines%w%d -#File oplines%w%d -#Function oplines%w%d -#Method oplines%w%d -#Conditionals%w%d -################################################# -clear -quit diff --git a/sapi/phpdbg/tests/commands/0106_compile.test b/sapi/phpdbg/tests/commands/0106_compile.test deleted file mode 100644 index b4d801670b..0000000000 --- a/sapi/phpdbg/tests/commands/0106_compile.test +++ /dev/null @@ -1,18 +0,0 @@ -################################################# -# name: compile -# purpose: test compiling code -# expect: TEST::FORMAT -# options: -rr -################################################# -#[Successful compilation of %s] -#Hello World -#[Script ended normally] -################################################# -<: -define('OUT', - tempnam(null, "phpdbg")); -file_put_contents(OUT, "<?php echo \"Hello World\"; ?>"); -phpdbg_exec(OUT); -:> -run -quit diff --git a/sapi/phpdbg/tests/commands/0107_compile.test b/sapi/phpdbg/tests/commands/0107_compile.test deleted file mode 100644 index 4842cb74f1..0000000000 --- a/sapi/phpdbg/tests/commands/0107_compile.test +++ /dev/null @@ -1,17 +0,0 @@ -################################################# -# name: compile -# purpose: test compiling error code -# expect: TEST::FORMAT -# options: -rr -################################################# -#[PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in %s on line %s] -#[Could not find information about included file...] -################################################# -<: -define('OUT', - tempnam(null, "phpdbg")); -file_put_contents(OUT, "<?error echo \"Hello World\"; ?>"); -phpdbg_exec(OUT); -:> -run -quit |