diff options
author | SVN Migration <svn@php.net> | 1999-12-12 15:55:58 +0000 |
---|---|---|
committer | SVN Migration <svn@php.net> | 1999-12-12 15:55:58 +0000 |
commit | 9492ee9beab4bbb8b7d083cb7717cb0161c60a1b (patch) | |
tree | f7ac8ea30f11d407bcb6bafbb7ff183d3d7db505 /tests | |
parent | f30278b96b25c630ec89ba8cc0bec259eb5b9ed8 (diff) | |
download | php-git-experimental/RETURN_REF.tar.gz |
This commit was manufactured by cvs2svn to create branch 'RETURN_REF'.experimental/RETURN_REF
Diffstat (limited to 'tests')
-rw-r--r-- | tests/foo | 5 | ||||
-rw-r--r-- | tests/foo2 | 3 | ||||
-rw-r--r-- | tests/foo3 | 43 | ||||
-rw-r--r-- | tests/foo4 | 41 | ||||
-rw-r--r-- | tests/recurse | 21 | ||||
-rw-r--r-- | tests/test.php4 | 15 | ||||
-rw-r--r-- | tests/test.pl | 34 | ||||
-rw-r--r-- | tests/test_class_inheritance | 29 | ||||
-rw-r--r-- | tests/testarray | 20 | ||||
-rw-r--r-- | tests/testarray.pl | 5 | ||||
-rw-r--r-- | tests/testarray2 | 4 | ||||
-rw-r--r-- | tests/testarray2.pl | 3 | ||||
-rw-r--r-- | tests/testclassfunc | 9 | ||||
-rw-r--r-- | tests/testcom | 9 | ||||
-rw-r--r-- | tests/testcpdf | 97 | ||||
-rw-r--r-- | tests/testfe | 18 | ||||
-rw-r--r-- | tests/testfunc | 34 | ||||
-rw-r--r-- | tests/testfunc.pl | 20 | ||||
-rw-r--r-- | tests/testfunc2 | 19 | ||||
-rw-r--r-- | tests/testfunc2.pl | 22 | ||||
-rw-r--r-- | tests/testfuncref | 10 | ||||
-rw-r--r-- | tests/testhyperwave | 200 | ||||
-rw-r--r-- | tests/testinclude | 5 | ||||
-rw-r--r-- | tests/testobj | 31 |
24 files changed, 0 insertions, 697 deletions
diff --git a/tests/foo b/tests/foo deleted file mode 100644 index 125c655b0f..0000000000 --- a/tests/foo +++ /dev/null @@ -1,5 +0,0 @@ -a -b -@c@ -d -e diff --git a/tests/foo2 b/tests/foo2 deleted file mode 100644 index 4cdd41e3dc..0000000000 --- a/tests/foo2 +++ /dev/null @@ -1,3 +0,0 @@ -<? - -print $a->b(12,13)."\n"; diff --git a/tests/foo3 b/tests/foo3 deleted file mode 100644 index 08681b98c2..0000000000 --- a/tests/foo3 +++ /dev/null @@ -1,43 +0,0 @@ -<? - -class foo { - function foo() { - print "foo()\n"; - } - function bar(&$blah, $foobar=7) { - $foobar += 19; - } - - function hello_world() { - return "Hello, World!"; - } - - function print_string($str) { - print "$str\n"; - return 666; - } - var $foo; - var $bar="this is a test..."; -}; - -class bar { - function foo($a,$b) { - $a *= 3; - return $a+$b; - } - function bar(&$blah, $foobar=7) { - $foobar += 19; - } - - var $foo; - var $bar="this is a test..."; -}; - - -$b = new foo; -$a = $b; -print $a->print_string($a->hello_world())."\n"; -print $b->print_string($b->hello_world())."\n"; -$a->foo = 5; -print $a->foo; -print $a->foo(); diff --git a/tests/foo4 b/tests/foo4 deleted file mode 100644 index c242debf97..0000000000 --- a/tests/foo4 +++ /dev/null @@ -1,41 +0,0 @@ -<? - -class foo { - function foo($a,$b) { - $a *= 3; - return $a+$b; - } - function bar(&$blah, $foobar=7) { - $foobar += 19; - } - - function hello_world() { - return "Hello, World!"; - } - - function print_string($str) { - print "$str\n"; - return 666; - } - var $foo; - var $bar="this is a test..."; -}; - -class bar { - function foo($a,$b) { - $a *= 3; - return $a+$b; - } - function bar(&$blah, $foobar=7) { - $foobar += 19; - } - - var $foo; - var $bar="this is a test..."; -}; - - -$b = new foo; -$a = &$b; -$b->asd = 5; -print $b->asd; diff --git a/tests/recurse b/tests/recurse deleted file mode 100644 index 026394a9f4..0000000000 --- a/tests/recurse +++ /dev/null @@ -1,21 +0,0 @@ -<? - -function factorial($n) -{ - if ($n==0 || $n==1) { - return 1; - } else { - return $n*factorial($n-1); - } -} - - -for ($k=0; $k<10; $k++): -for ($i=0,$sum=0; $i<150; $i++) { - $sum = $sum+factorial($i); -} -endfor; - -print "\$sum=$sum\n"; - - diff --git a/tests/test.php4 b/tests/test.php4 deleted file mode 100644 index 7af9a28ebd..0000000000 --- a/tests/test.php4 +++ /dev/null @@ -1,15 +0,0 @@ -<? -function blah($a) -{ - return $a; -} - -return "cool"; - - -for ($for=0; $for<=100000;$for++) -{ -if ("andi" != blah("andi")) -{ -print "error";} -} diff --git a/tests/test.pl b/tests/test.pl deleted file mode 100644 index 2502cb1298..0000000000 --- a/tests/test.pl +++ /dev/null @@ -1,34 +0,0 @@ -<? - -$i = 0; -$j = 1; - -for ($k=0; $k<1000000; $k = $k+1) { - while ($i<10000000) { - if (($i%"4")<1) { - $i = $i+"1"; - if ($j%"2") { - $i = $i * "2"; - } - } elseif (($i%"4")<2) { - $i = $i+"2"; - if ($j%"2") { - $i = $i * "2"; - } - } elseif (($i%"4")<3) { - $i = $i+3; - if ($j%"2") { - $i = $i * "2"; - } - } else { - $i = $i+"4"; - if ($j%"2") { - $i = $i * "2"; - } - } - $j = $j+1; - } -} -print $i; -print "\n"; - diff --git a/tests/test_class_inheritance b/tests/test_class_inheritance deleted file mode 100644 index 3f903e62d1..0000000000 --- a/tests/test_class_inheritance +++ /dev/null @@ -1,29 +0,0 @@ -<? - -class BaseClass { - var $class_name = "BaseClass"; - - function BaseClass($value) { - print "value is '$value'\n"; - } - function MyClassName() { - return $this->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 deleted file mode 100644 index a8d3d66a91..0000000000 --- a/tests/testarray +++ /dev/null @@ -1,20 +0,0 @@ -This is a small test... -<? -/* - * this is a multiline comment... - */ - -for ($j=0; $j<=20; $j++) { - for ($i[0][0]=0; $i[0][0]<10000; $i[0][0]++) { - $i[1] += $i[0][0]; // this is a single line comment - } -} - -/* this is another multi -line - comment...****** -/ -*/ - -print $i[1]."\n"; - diff --git a/tests/testarray.pl b/tests/testarray.pl deleted file mode 100644 index 9ec83e184c..0000000000 --- a/tests/testarray.pl +++ /dev/null @@ -1,5 +0,0 @@ -for ($i[0][0]=0; $i[0][0]<1000000; $i[0][0]++) { - $i[1] += $i[0][0]; -} - -print $i[1]; diff --git a/tests/testarray2 b/tests/testarray2 deleted file mode 100644 index b1bbc827b0..0000000000 --- a/tests/testarray2 +++ /dev/null @@ -1,4 +0,0 @@ -<? -for ($i="aaa"; $i<"bbb\nbbb"; $i++) { - print $i; -} diff --git a/tests/testarray2.pl b/tests/testarray2.pl deleted file mode 100644 index e72c526d4f..0000000000 --- a/tests/testarray2.pl +++ /dev/null @@ -1,3 +0,0 @@ -for ($i="aaa"; $i lt "bbb"; $i++) { - print "$i\n"; -} diff --git a/tests/testclassfunc b/tests/testclassfunc deleted file mode 100644 index 007bf3bd37..0000000000 --- a/tests/testclassfunc +++ /dev/null @@ -1,9 +0,0 @@ -<? -class foo { - function bar() { - print "Hey there!\n"; - } -}; - -foo::bar(); - diff --git a/tests/testcom b/tests/testcom deleted file mode 100644 index 3668424a29..0000000000 --- a/tests/testcom +++ /dev/null @@ -1,9 +0,0 @@ -<? -$word = new COM("word.application") or die("Unable to instanciate Word"); -print "Loaded Word, version {$word->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/testcpdf b/tests/testcpdf deleted file mode 100644 index a74087d18e..0000000000 --- a/tests/testcpdf +++ /dev/null @@ -1,97 +0,0 @@ -<?php - function draw_text($cpdf, $fontname, $size, $x, $y, $text="") { - cpdf_begin_text($cpdf); - cpdf_set_font($cpdf, $fontname, $size, 4); - if($text == "") - cpdf_text($cpdf, $fontname." ".$size." Point", $x, $y, 1); - else - cpdf_text($cpdf, $text, $x, $y, 1); - cpdf_end_text($cpdf); - } - - $cpdf = cpdf_open(0); - cpdf_set_Creator($cpdf, "Creator"); - cpdf_set_Title($cpdf, "Title"); - cpdf_set_Subject($cpdf, "Subject"); - cpdf_set_Keywords($cpdf, "Keyword1, Keyword2"); - cpdf_set_viewer_preferences($cpdf, 1); - - cpdf_page_init($cpdf, 1, 0, 600, 400, 1); - $level1 = cpdf_add_outline($cpdf, 0, 0, 1, 1, "Examples"); - $level2a = cpdf_add_outline($cpdf, $level1, 1, 0, 1, "Text"); - draw_text($cpdf, "Helvetica", 18.0, 50, 330); - draw_text($cpdf, "Helvetica-Bold", 18.0, 50, 310); - draw_text($cpdf, "Helvetica-Oblique", 18.0, 50, 290); - draw_text($cpdf, "Helvetica-BoldOblique", 18.0, 50, 270); - draw_text($cpdf, "Times-Roman", 18.0, 50, 250); - draw_text($cpdf, "Times-Bold", 18.0, 50, 230); - draw_text($cpdf, "Times-Italic", 18.0, 50, 210); - draw_text($cpdf, "Times-BoldItalic", 18.0, 50, 190); - draw_text($cpdf, "Courier", 18.0, 50, 170); - draw_text($cpdf, "Courier-Bold", 18.0, 50, 150); - draw_text($cpdf, "Courier-Oblique", 18.0, 50, 130); - draw_text($cpdf, "Courier-BoldOblique", 18.0, 50, 110); - draw_text($cpdf, "Symbol", 18.0, 50, 90); - draw_text($cpdf, "ZapfDingbats", 18.0, 50, 70); - - cpdf_page_init($cpdf, 2, 0, 400, 400, 1); - $level2b = cpdf_add_outline($cpdf, $level2a, 0, 0, 2, "Annotations, Hyperlinks"); - cpdf_add_annotation($cpdf, 100, 100, 300, 200, "Annotation", "Text of Annotation"); - draw_text($cpdf, "Helvetica", 12.0, 102, 116, "Click here to go to"); - draw_text($cpdf, "Helvetica", 12.0, 102, 103, "http://localhost"); - cpdf_set_action_url($cpdf, 100, 100, 202, 130, "http://localhost"); - - cpdf_page_init($cpdf, 3, 0, 400, 600, 1); - $level2c = cpdf_add_outline($cpdf, $level2b, 0, 0, 3, "Drawing"); - cpdf_rect($cpdf, 100, 100, 90, 90, 1); - cpdf_stroke($cpdf); - cpdf_rect($cpdf, 200, 100, 90, 90, 1); - cpdf_fill_stroke($cpdf); - - cpdf_setgray_fill($cpdf, 0.5); - cpdf_circle($cpdf, 140, 250, 35, 1); - cpdf_stroke($cpdf); - cpdf_circle($cpdf, 240, 250, 35, 1); - cpdf_fill_stroke($cpdf); - - cpdf_moveto($cpdf, 300, 100, 1); - cpdf_lineto($cpdf, 350, 100, 1); - cpdf_curveto($cpdf, 350, 100, 325, 300, 300, 100, 1); - cpdf_stroke($cpdf); - - cpdf_moveto($cpdf, 400, 100, 1); - cpdf_lineto($cpdf, 450, 100, 1); - cpdf_curveto($cpdf, 450, 100, 425, 400, 400, 100, 1); - cpdf_fill_stroke($cpdf); - - cpdf_page_init($cpdf, 4, 0, 400, 600, 1); - $level2d = cpdf_add_outline($cpdf, $level2c, 0, 0, 4, "Images, Clipping"); - cpdf_import_jpeg($cpdf, "figure.jpg", 50, 50, -10.0, 0.0, 300.0, 0.0, 0.0, 1, 1); - cpdf_save($cpdf); - cpdf_newpath($cpdf); - cpdf_moveto($cpdf, 300, 50); - cpdf_lineto($cpdf, 450, 50, 1); - cpdf_curveto($cpdf, 450, 100, 375, 300, 300, 100, 1); - cpdf_closepath($cpdf); - cpdf_rect($cpdf, 350, 215, 100, 30); - cpdf_clip($cpdf); - cpdf_newpath($cpdf); /* needed because clip doesn't consume path */ - draw_text($cpdf, "Helvetica", 18.0, 250, 130); - cpdf_import_jpeg($cpdf, "figure.jpg", 300, 50, 0.0, 0.0, 300.0, 0.0, 0.0, 0, 1); /* watch for the second last parameter. It is 0 to disable extra gsave/grestore */ - cpdf_restore($cpdf); - - cpdf_page_init($cpdf, 5, 0, 400, 400, 1); - $level2e = cpdf_add_outline($cpdf, $level2d, 0, 0, 5, "GD Image"); - - $gdimage = imagecreate(100, 100); - $color = imagecolorallocate($gdimage, 100, 190, 0); - $black = imagecolorallocate($gdimage, 0, 0, 0); - imageline($gdimage, 2, 2, 90, 90, $black); - - cpdf_place_inline_image($cpdf, $gdimage, 50, 50, 10.0, 150, 50.0, 1, 1); - imagedestroy($gdimage); - - cpdf_finalize($cpdf); - cpdf_output_buffer($cpdf); - cpdf_close($cpdf); -?> diff --git a/tests/testfe b/tests/testfe deleted file mode 100644 index ea62760635..0000000000 --- a/tests/testfe +++ /dev/null @@ -1,18 +0,0 @@ -<? -$foo = array(7,"foo",3,array(1,2),4); - -for ($i=0; $i<3; $i++): - -foreach($a, $foo ) { - if (gettype($a)=="array") { - print "Array:\n"; - foreach($b, $a) { - print "\t$b\n"; - } - print "End of array.\n"; - } else { - print "$a\n"; - } -// print "$a\n"; -} -endfor; diff --git a/tests/testfunc b/tests/testfunc deleted file mode 100644 index d0e6d36743..0000000000 --- a/tests/testfunc +++ /dev/null @@ -1,34 +0,0 @@ -<? -function foo() -{ - $i=0; - - if ($i) { - $a = "zeev"; - } else { - $b = "andi"; - } -} - -function bar() -{ - foo(); -} - -for ($i=0; $i<1000; $i++) { - bar(); -} - - -for ($i=0; $i<10; $i++) { - bar(); -} - -print "Got here... - -"; - -$a = 7; -$a = 5; -print "Got here...\n\n"; - diff --git a/tests/testfunc.pl b/tests/testfunc.pl deleted file mode 100644 index 87864866ff..0000000000 --- a/tests/testfunc.pl +++ /dev/null @@ -1,20 +0,0 @@ -sub foo() -{ - my $i=0; - - if ($i) { - my $a = "zeev"; - } else { - my $b = "andi"; - } -} - - -sub bar() -{ - foo(); -} - -for ($i=0; $i<1000000; $i++) { - bar(); -} diff --git a/tests/testfunc2 b/tests/testfunc2 deleted file mode 100644 index 42f91f2bae..0000000000 --- a/tests/testfunc2 +++ /dev/null @@ -1,19 +0,0 @@ -<? -function foo($i) -{ - if ($i) { - $a = "zeev"; - } else { - $b = "andi"; - } -} - - -function bar($a) -{ - foo($a); -} - -for ($i=0; $i<10000; $i=$i+1) { - bar($i); -} diff --git a/tests/testfunc2.pl b/tests/testfunc2.pl deleted file mode 100644 index 7eeaf92ffb..0000000000 --- a/tests/testfunc2.pl +++ /dev/null @@ -1,22 +0,0 @@ -sub foo -{ - my $i = shift(@_); - - if ($i) { - my $a = "zeev"; - } else { - my $b = "andi"; - } -} - - -sub bar -{ - my $i = shift(@_); - - foo($i); -} - -for ($i=0; $i<1000000; $i=$i+1) { - bar($i); -} diff --git a/tests/testfuncref b/tests/testfuncref deleted file mode 100644 index 217e4d14e0..0000000000 --- a/tests/testfuncref +++ /dev/null @@ -1,10 +0,0 @@ -<? - -function foobar() -{ - print "foobar\n"; -} - -$foobar = "foobar"; - -$a = ${"foo"."bar"}(); diff --git a/tests/testhyperwave b/tests/testhyperwave deleted file mode 100644 index 973489cf34..0000000000 --- a/tests/testhyperwave +++ /dev/null @@ -1,200 +0,0 @@ -<? - $id = 190867; // A plain/text document - $collid = 169828; // A collection - $query = "Name=m*"; // Search query for test_9 - $host = "gehtnix"; - $username = "steinm"; - $password = "akli9132"; - - $connect = hw_connect($host, 418, $username, $password); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - - // Set all test to 'yes' if they shall be executed - $test_1 = "yes"; // Get the text document with id $id and output it - $test_2 = "yes"; // Check if id $id is in $collid - $test_3 = "yes"; // Convert object record to object array and back - $test_4 = "yes"; // Get object record of object with id $id - $test_5 = "yes"; // List children of $collid - $test_6 = "yes"; // List parents of $id - $test_7 = "yes"; // Insert a new text document - $test_8 = "yes"; // Remove the just inserted text document - $test_9 = "yes"; // Searching for objects with Name $query - - /* Lists an object array - */ - function list_attr($attributes) { - global $imagepath; - for($i=0; $i<count($attributes); $i++) { - $key = key($attributes); - switch($key) { - case "Title": - case "Description": - $title_arr = $attributes[$key]; - $cj = count($title_arr); - printf("%s = ", $key); - for($j=0; $j<$cj; $j++) { - $tkey = key($title_arr); - switch($tkey) { - case "en": - $flagfile = "english.gif"; - break; - case "ge": - $flagfile = "german.gif"; - break; - case "du": - $flagfile = "dutch.gif"; - break; - default: - $flagfile = "europe.gif"; - } - printf("%s:%s; ", $tkey, $title_arr[$tkey]); - - next($title_arr); - } - printf("\n"); - break; - default: - printf("%s = %s\n", $key, $attributes[$key]); - } - next($attributes); - } - echo "\n"; - } - - // Here come the tests - if($test_1 == "yes") { - echo "TEST 1 ----------------------------------------------\n"; - echo "Get the text document with id 0x".dechex($id)."\n"; - $doc = hw_gettext($connect, $id); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - hw_output_document($doc); - echo "\n"; - } - - if($test_2 == "yes") { - echo "TEST 2 ----------------------------------------------\n"; - echo "Checking if '$id' (0x".dechex($id).") is in collection '$collid (0x".dechex($collid).")'\n"; - $incoll = hw_incollections($connect, array($id), array($collid), 0); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - for($i=0; $i<count($incoll); $i++) - echo $incoll[$i]."\n"; - } - - if($test_3 == "yes") { - echo "TEST 3 ----------------------------------------------\n"; - echo "Convert an object array into an object record\n"; - $objrec = hw_array2objrec(array("Title"=>"ge:Hier der Titel", "Author"=>"Hier der Autor")); - echo $objrec."\n"; - $objrec .= "\nTitle=en:Here the title"; - echo "Add another title and convert it back to an object array\n"; - $objarr = hw_objrec2array($objrec); - list_attr($objarr); - } - - if($test_4 == "yes") { - echo "TEST 4 ----------------------------------------------\n"; - echo "Get the object array of document with id 0x".dechex($id)."\n"; - $objrec = hw_getobject($connect, $id); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - $objarr = hw_objrec2array($objrec); - list_attr($objarr); - } - - if($test_5 == "yes") { - echo "TEST 5 ----------------------------------------------\n"; - echo "List the children of collection 0x".dechex($collid)."\n"; - $children = hw_childrenobj($connect, $collid); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - $c_children = count($children) - 1; - for($i=0; $i<$c_children; $i++) { - $objarr = hw_objrec2array($children[$i]); - list_attr($objarr); - } - list_attr($children[$c_children]); - } - - if($test_6 == "yes") { - echo "TEST 6 ----------------------------------------------\n"; - echo "List the parents of object 0x".dechex($id)."\n"; - $parents = hw_getparentsobj($connect, $collid); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - $c_parents = count($parents) - 1; - for($i=0; $i<$c_parents; $i++) { - $objarr = hw_objrec2array($parents[$i]); - list_attr($objarr); - } - list_attr($parents[$c_parents]); - } - - if($test_7 == "yes") { - echo "TEST 7 ----------------------------------------------\n"; - echo "Inserting a new text document into 0x".dechex($collid)."\n"; - $objrec = "Type=Document\nDocumentType=text\nName=HWTest\nTitle=en:Component\nMimeType=text/plain\nAuthor=".$username; - $contents = "Ein bischen Text"; - $doc = hw_new_document($objrec, $contents, strlen($contents)+1); - $objid = hw_insertdocument($connect, $collid, $doc); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - $objrec = hw_getobject($connect, $objid); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - $objarr = hw_objrec2array($objrec); - list_attr($objarr); - } - - if($test_8 == "yes") { - echo "TEST 8 ----------------------------------------------\n"; - echo "Removing text document just inserted\n"; - $kk[0] = (int) $objid; - hw_mv($connect, $kk, $collid, 0); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - exit; - } - echo "If the document was really deleted you should see an error now\n"; - $objrec = hw_getobject($connect, $objid); - if(hw_error($connect)) { - echo "ERROR: ".hw_errormsg($connect)."\n"; - } else { - $objarr = hw_objrec2array($objrec); - list_attr($objarr); - } - } - - if($test_9 == "yes") { - echo "TEST 9 ----------------------------------------------\n"; - echo "Searching for objects with $query\n"; - $objrecs = hw_getobjectbyqueryobj($connect, $query, -1); - $c_objrecs = count($objrecs) - 1; - echo "$c_objrecs found\n"; - for($i=0; $i<$c_objrecs; $i++) { - $objarr = hw_objrec2array($objrecs[$i]); - list_attr($objarr); - } - list_attr($objrecs[$c_objrecs]); - } - - hw_close($connect); -?> diff --git a/tests/testinclude b/tests/testinclude deleted file mode 100644 index 7539985aa7..0000000000 --- a/tests/testinclude +++ /dev/null @@ -1,5 +0,0 @@ -<? -print "Before include...\n"; -$retval = include("testarray"); -print "After include, include returned $retval\n"; -?>
\ No newline at end of file diff --git a/tests/testobj b/tests/testobj deleted file mode 100644 index bc6f5fd2fe..0000000000 --- a/tests/testobj +++ /dev/null @@ -1,31 +0,0 @@ -<? -define("endl","\n"); - -//if (1) { -class foobar { - function foobar() { - $this->initialized = 1; - } -}; - -class barbara extends foobar { - -}; -//} - -$name = "foobar"; -$foo = new $name; // or die("Unable to construct foobar\n"); -//print $foo->initialized; - -$boo = new barbara; -print get_class($foo).endl; -print get_parent_class($foo).endl; -print get_class($boo).endl; -print get_parent_class($boo).endl; -print method_exists($foo,"foobar").endl; -print method_exists($boo,"foobar").endl; -print method_exists($boo,"barbara").endl; -//$word = new COm("word.application"); -//$word->visible = true; -//sleep(5); -//$word->quit(); |