From cef4df1fee046105ab35f47c152d39bf16a55a07 Mon Sep 17 00:00:00 2001 From: Andrey Hristov Date: Thu, 8 Jul 1999 21:42:29 +0000 Subject: Reduce clutter a bit. --- tests/test.php4 | 16 ++++++++++++++++ tests/test.pl | 34 ++++++++++++++++++++++++++++++++++ tests/test_class_inheritance | 29 +++++++++++++++++++++++++++++ tests/testarray | 21 +++++++++++++++++++++ tests/testarray.pl | 5 +++++ tests/testarray2 | 5 +++++ tests/testarray2.pl | 3 +++ tests/testclassfunc | 10 ++++++++++ tests/testcom | 9 +++++++++ tests/testfe | 21 +++++++++++++++++++++ tests/testfunc | 36 ++++++++++++++++++++++++++++++++++++ tests/testfunc.pl | 20 ++++++++++++++++++++ tests/testfunc2 | 19 +++++++++++++++++++ tests/testfunc2.pl | 22 ++++++++++++++++++++++ tests/testfuncref | 8 ++++++++ tests/testinclude | 5 +++++ tests/testobj | 14 ++++++++++++++ 17 files changed, 277 insertions(+) create mode 100644 tests/test.php4 create mode 100644 tests/test.pl create mode 100644 tests/test_class_inheritance create mode 100644 tests/testarray create mode 100644 tests/testarray.pl create mode 100644 tests/testarray2 create mode 100644 tests/testarray2.pl create mode 100644 tests/testclassfunc create mode 100644 tests/testcom create mode 100644 tests/testfe create mode 100644 tests/testfunc create mode 100644 tests/testfunc.pl create mode 100644 tests/testfunc2 create mode 100644 tests/testfunc2.pl create mode 100644 tests/testfuncref create mode 100644 tests/testinclude create mode 100644 tests/testobj (limited to 'tests') diff --git a/tests/test.php4 b/tests/test.php4 new file mode 100644 index 0000000000..fdcd51bdbd --- /dev/null +++ b/tests/test.php4 @@ -0,0 +1,16 @@ +class_name; + } +}; + + +class ChildClass { + var $class_name = "ChildClass"; + + function ChildClass($value, $new_value) { + BaseClass::BaseClass($value); + print "new value is '$new_value'\n"; + } + function MyClassName($a_value) { + return BaseClass::MyClassName()." and the value is '$a_value'"; + } +}; + + +$obj = new ChildClass("Test", "Another test"); +print $obj->MyClassName("not interesting"); \ No newline at end of file diff --git a/tests/testarray b/tests/testarray new file mode 100644 index 0000000000..27a2f9bc4d --- /dev/null +++ b/tests/testarray @@ -0,0 +1,21 @@ + +This is a small test... + +Version}\n"; +$word->Visible = 1; +$word->Documents->Add(); +$word->Selection->TypeText("This is a test..."); +$word->Documents[1]->SaveAs("Useless test.doc"); +$word->Quit(); +?> \ No newline at end of file diff --git a/tests/testfe b/tests/testfe new file mode 100644 index 0000000000..5ae85511b5 --- /dev/null +++ b/tests/testfe @@ -0,0 +1,21 @@ + \ No newline at end of file diff --git a/tests/testobj b/tests/testobj new file mode 100644 index 0000000000..1c2aa7f2c0 --- /dev/null +++ b/tests/testobj @@ -0,0 +1,14 @@ +initialized = 1; + } +}; + +$foo = new foobar; // or die("Unable to construct foobar\n"); +//$word = new COm("word.application"); +//$word->visible = true; +//sleep(5); +//$word->quit(); -- cgit v1.2.1