diff options
author | Hartmut Holzgraefe <hholzgra@php.net> | 2000-10-23 07:31:31 +0000 |
---|---|---|
committer | Hartmut Holzgraefe <hholzgra@php.net> | 2000-10-23 07:31:31 +0000 |
commit | b17451635d4a7c3392aad8adadca31d36410514c (patch) | |
tree | b2ee8839515dbb4f44e64a7f0208f22435ee830e /ext/skeleton | |
parent | fa8452bbb252e69ffa6d31bb5336ee3c967949fc (diff) | |
download | php-git-b17451635d4a7c3392aad8adadca31d36410514c.tar.gz |
added a regression test skeleton file
plus a partintro in xml documentation template
Diffstat (limited to 'ext/skeleton')
-rwxr-xr-x | ext/skeleton/create_stubs | 6 | ||||
-rw-r--r-- | ext/skeleton/tests/001.phpt | 23 |
2 files changed, 28 insertions, 1 deletions
diff --git a/ext/skeleton/create_stubs b/ext/skeleton/create_stubs index e7ea6a165b..e302fe31be 100755 --- a/ext/skeleton/create_stubs +++ b/ext/skeleton/create_stubs @@ -85,7 +85,11 @@ BEGIN { xmlhead = " <reference id=\"ref." extname "\">\n" \ " <title> functions</title>\n" \ - " <titleabbrev></titleabbrev>\n\n" + " <titleabbrev></titleabbrev>\n\n" \ + " <partintro>\n" + " <para>\n" \ + " </para\n" \ + " </partintro>\n\n"; xmlfoot = " </reference>\n\n" \ "<!-- Keep this comment at the end of the file\n" \ diff --git a/ext/skeleton/tests/001.phpt b/ext/skeleton/tests/001.phpt new file mode 100644 index 0000000000..cf40e4e1a5 --- /dev/null +++ b/ext/skeleton/tests/001.phpt @@ -0,0 +1,23 @@ +--TEST-- +Check for extname presence +--SKIPIF-- +<?php if (!extension_loaded("extname")) print "skip"; ?> +--POST-- +--GET-- +--FILE-- +<?php +echo "extname extension is available"; +/* + you can add regression tests for your extension here + + the output of your test code has to be equal to the + text in the --EXPECT-- section below for the tests + to pass, differences between the output and the + expected text are interpreted as failure + + see php4/tests/README for further information on + writing regression tests +*/ +?> +--EXPECT-- +extname extension is available
\ No newline at end of file |