Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Add php.par Test

  • Loading branch information...
commit 36b649dabea9b1cad525b5120345a64a346ee2a5 1 parent 219ded0
badlee authored

Showing 42 changed files with 0 additions and 683 deletions. Show diff stats Hide diff stats

  1. +0 30 par/php.par
  2. +0 15 test/php/benchmarks/arrayConversions100.phype
  3. +0 15 test/php/benchmarks/arrayConversions1000.phype
  4. +0 15 test/php/benchmarks/arrayConversions10000.phype
  5. +0 15 test/php/benchmarks/arrayConversions500.phype
  6. +0 15 test/php/benchmarks/arrayConversions5000.phype
  7. +0 28 test/php/benchmarks/manyFunCalls100.phype
  8. +0 28 test/php/benchmarks/manyFunCalls1000.phype
  9. +0 28 test/php/benchmarks/manyFunCalls10000.phype
  10. +0 28 test/php/benchmarks/manyFunCalls500.phype
  11. +0 28 test/php/benchmarks/manyFunCalls5000.phype
  12. +0 20 test/php/benchmarks/manyGCObjects100.phype
  13. +0 20 test/php/benchmarks/manyGCObjects1000.phype
  14. +0 20 test/php/benchmarks/manyGCObjects10000.phype
  15. +0 20 test/php/benchmarks/manyGCObjects500.phype
  16. +0 20 test/php/benchmarks/manyGCObjects5000.phype
  17. +0 19 test/php/benchmarks/manyObjects100.phype
  18. +0 19 test/php/benchmarks/manyObjects1000.phype
  19. +0 19 test/php/benchmarks/manyObjects10000.phype
  20. +0 19 test/php/benchmarks/manyObjects500.phype
  21. +0 19 test/php/benchmarks/manyObjects5000.phype
  22. +0 18 test/php/benchmarks/tripleDimArray100.phype
  23. +0 18 test/php/benchmarks/tripleDimArray1000.phype
  24. +0 18 test/php/benchmarks/tripleDimArray10000.phype
  25. +0 18 test/php/benchmarks/tripleDimArray500.phype
  26. +0 18 test/php/benchmarks/tripleDimArray5000.phype
  27. +0 1  test/php/test.js
  28. +0 11 test/php/testcases/arithmetics.phype
  29. +0 8 test/php/testcases/arrayMultiTest.phype
  30. +0 7 test/php/testcases/arrayTest.phype
  31. +0 16 test/php/testcases/binops.phype
  32. +0 12 test/php/testcases/boolTest.phype
  33. +0 15 test/php/testcases/charDataEcho.phype
  34. +0 12 test/php/testcases/classAttrHelloWorld.phype
  35. +0 10 test/php/testcases/classConstructorHelloWorld.phype
  36. +0 11 test/php/testcases/classFunctionHelloWorld.phype
  37. +0 9 test/php/testcases/echoArrayHelloWorld.phype
  38. +0 8 test/php/testcases/echoFunctionHelloWorld.phype
  39. +0 9 test/php/testcases/echoMultiArrayHelloWorld.phype
  40. +0 9 test/php/testcases/funCall.phype
  41. +0 7 test/php/testcases/varAssignSelf.phype
  42. +0 8 test/php/testcases/whileTest.phype
30 par/php.par
@@ -2044,36 +2044,6 @@ if (!phypeOut || phypeOut == 'undefined') {
2044 2044 var phypeOut = alert;
2045 2045 }
2046 2046
2047   -/**
2048   - * Creates an echo with non-PHP character data that precedes the first php-tag.
2049   - */
2050   -function preParse(str) {
2051   - var firstPhp = str.indexOf('<?');
2052   - var res = '';
2053   - if (firstPhp > 0 || firstPhp == -1) {
2054   - if (firstPhp == -1) firstPhp = str.length;
2055   - var echoStr = '<? ';
2056   - echoStr += "echo '"+str.substring(0,firstPhp).replace("'","\'")+"';";
2057   - echoStr += ' ?>';
2058   - res = echoStr+str.substring(firstPhp,str.length);
2059   - } else {
2060   - res = str;
2061   - }
2062   -
2063   - return res
2064   -}
2065   -
2066   -function interpret(str) {
2067   - var error_cnt = 0;
2068   - var error_off = new Array();
2069   - var error_la = new Array();
2070   -
2071   - if( ( error_cnt = __parse( preParse(str), error_off, error_la ) ) > 0 ) {
2072   - for(var i=0; i<error_cnt; i++)
2073   - phypeOut( "Parse error near >"
2074   - + str.substr( error_off[i], 30 ) + "<, expecting \"" + error_la[i].join() + "\"<br/>\n" );
2075   - }
2076   -}
2077 2047
2078 2048 /////////////
2079 2049 // PARSING //
15 test/php/benchmarks/arrayConversions100.phype
... ... @@ -1,15 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -$i = 0;
4   -$a[0][0][0] = 42;
5   -while ($i < 100) {
6   - $test = $a;
7   - $test[0][0][0] = 42;
8   - $test[0][0] = 42;
9   - $test[0] = 42;
10   -
11   - $i = $i+1;
12   -}
13   -
14   -echo $test[0];
15   -?>
15 test/php/benchmarks/arrayConversions1000.phype
... ... @@ -1,15 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -$i = 0;
4   -$a[0][0][0] = 42;
5   -while ($i < 1000) {
6   - $test = $a;
7   - $test[0][0][0] = 42;
8   - $test[0][0] = 42;
9   - $test[0] = 42;
10   -
11   - $i = $i+1;
12   -}
13   -
14   -echo $test[0];
15   -?>
15 test/php/benchmarks/arrayConversions10000.phype
... ... @@ -1,15 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -$i = 0;
4   -$a[0][0][0] = 42;
5   -while ($i < 10000) {
6   - $test = $a;
7   - $test[0][0][0] = 42;
8   - $test[0][0] = 42;
9   - $test[0] = 42;
10   -
11   - $i = $i+1;
12   -}
13   -
14   -echo $test[0];
15   -?>
15 test/php/benchmarks/arrayConversions500.phype
... ... @@ -1,15 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -$i = 0;
4   -$a[0][0][0] = 42;
5   -while ($i < 500) {
6   - $test = $a;
7   - $test[0][0][0] = 42;
8   - $test[0][0] = 42;
9   - $test[0] = 42;
10   -
11   - $i = $i+1;
12   -}
13   -
14   -echo $test[0];
15   -?>
15 test/php/benchmarks/arrayConversions5000.phype
... ... @@ -1,15 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -$i = 0;
4   -$a[0][0][0] = 42;
5   -while ($i < 5000) {
6   - $test = $a;
7   - $test[0][0][0] = 42;
8   - $test[0][0] = 42;
9   - $test[0] = 42;
10   -
11   - $i = $i+1;
12   -}
13   -
14   -echo $test[0];
15   -?>
28 test/php/benchmarks/manyFunCalls100.phype
... ... @@ -1,28 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -function theAnswer100($a) {
4   - $b = $a;
5   - $a = $a/$b;
6   - $a = $a*20+22;
7   -
8   - return $a;
9   -}
10   -
11   -$tmp = 0;
12   -$i = 0;
13   -while ($i < 100) {
14   - $var = 0;
15   - $tmp = theAnswer100(1);
16   - $var = $var+$tmp;
17   - $tmp = theAnswer100(1);
18   - $var = $var+$tmp;
19   - $tmp = theAnswer100(1);
20   - $var = $var+$tmp;
21   - $tmp = theAnswer100(1);
22   - $var = ($var+$tmp);
23   - $var = $var/4;
24   - $i = $i+1;
25   -}
26   -
27   -echo $var;
28   -?>
28 test/php/benchmarks/manyFunCalls1000.phype
... ... @@ -1,28 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -function theAnswer1000($a) {
4   - $b = $a;
5   - $a = $a/$b;
6   - $a = $a*20+22;
7   -
8   - return $a;
9   -}
10   -
11   -$tmp = 0;
12   -$i = 0;
13   -while ($i < 1000) {
14   - $var = 0;
15   - $tmp = theAnswer1000(1);
16   - $var = $var+$tmp;
17   - $tmp = theAnswer1000(1);
18   - $var = $var+$tmp;
19   - $tmp = theAnswer1000(1);
20   - $var = $var+$tmp;
21   - $tmp = theAnswer1000(1);
22   - $var = ($var+$tmp);
23   - $var = $var/4;
24   - $i = $i+1;
25   -}
26   -
27   -echo $var;
28   -?>
28 test/php/benchmarks/manyFunCalls10000.phype
... ... @@ -1,28 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -function theAnswer10000($a) {
4   - $b = $a;
5   - $a = $a/$b;
6   - $a = $a*20+22;
7   -
8   - return $a;
9   -}
10   -
11   -$tmp = 0;
12   -$i = 0;
13   -while ($i < 10000) {
14   - $var = 0;
15   - $tmp = theAnswer10000(1);
16   - $var = $var+$tmp;
17   - $tmp = theAnswer10000(1);
18   - $var = $var+$tmp;
19   - $tmp = theAnswer10000(1);
20   - $var = $var+$tmp;
21   - $tmp = theAnswer10000(1);
22   - $var = ($var+$tmp);
23   - $var = $var/4;
24   - $i = $i+1;
25   -}
26   -
27   -echo $var;
28   -?>
28 test/php/benchmarks/manyFunCalls500.phype
... ... @@ -1,28 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -function theAnswer500($a) {
4   - $b = $a;
5   - $a = $a/$b;
6   - $a = $a*20+22;
7   -
8   - return $a;
9   -}
10   -
11   -$tmp = 0;
12   -$i = 0;
13   -while ($i < 500) {
14   - $var = 0;
15   - $tmp = theAnswer500(1);
16   - $var = $var+$tmp;
17   - $tmp = theAnswer500(1);
18   - $var = $var+$tmp;
19   - $tmp = theAnswer500(1);
20   - $var = $var+$tmp;
21   - $tmp = theAnswer500(1);
22   - $var = ($var+$tmp);
23   - $var = $var/4;
24   - $i = $i+1;
25   -}
26   -
27   -echo $var;
28   -?>
28 test/php/benchmarks/manyFunCalls5000.phype
... ... @@ -1,28 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -function theAnswer5000($a) {
4   - $b = $a;
5   - $a = $a/$b;
6   - $a = $a*20+22;
7   -
8   - return $a;
9   -}
10   -
11   -$tmp = 0;
12   -$i = 0;
13   -while ($i < 5000) {
14   - $var = 0;
15   - $tmp = theAnswer5000(1);
16   - $var = $var+$tmp;
17   - $tmp = theAnswer5000(1);
18   - $var = $var+$tmp;
19   - $tmp = theAnswer5000(1);
20   - $var = $var+$tmp;
21   - $tmp = theAnswer5000(1);
22   - $var = ($var+$tmp);
23   - $var = $var/4;
24   - $i = $i+1;
25   -}
26   -
27   -echo $var;
28   -?>
20 test/php/benchmarks/manyGCObjects100.phype
... ... @@ -1,20 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class testGC100 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 100) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new testGC100();
15   - $$varName = '';
16   - $i = $i+1;
17   -}
18   -
19   -echo 'hello world';
20   -?>
20 test/php/benchmarks/manyGCObjects1000.phype
... ... @@ -1,20 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class testGC1000 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 1000) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new testGC1000();
15   - $$varName = '';
16   - $i = $i+1;
17   -}
18   -
19   -echo 'hello world';
20   -?>
20 test/php/benchmarks/manyGCObjects10000.phype
... ... @@ -1,20 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class testGC10000 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 10000) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new testGC10000();
15   - $$varName = '';
16   - $i = $i+1;
17   -}
18   -
19   -echo 'hello world';
20   -?>
20 test/php/benchmarks/manyGCObjects500.phype
... ... @@ -1,20 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class testGC500 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 500) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new testGC500();
15   - $$varName = '';
16   - $i = $i+1;
17   -}
18   -
19   -echo 'hello world';
20   -?>
20 test/php/benchmarks/manyGCObjects5000.phype
... ... @@ -1,20 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class testGC5000 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 5000) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new testGC5000();
15   - $$varName = '';
16   - $i = $i+1;
17   -}
18   -
19   -echo 'hello world';
20   -?>
19 test/php/benchmarks/manyObjects100.phype
... ... @@ -1,19 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class test100 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 100) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new test100();
15   - $i = $i+1;
16   -}
17   -
18   -echo $test99->hi();
19   -?>
19 test/php/benchmarks/manyObjects1000.phype
... ... @@ -1,19 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class test1000 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 1000) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new test1000();
15   - $i = $i+1;
16   -}
17   -
18   -echo $test999->hi();
19   -?>
19 test/php/benchmarks/manyObjects10000.phype
... ... @@ -1,19 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class test10000 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 10000) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new test10000();
15   - $i = $i+1;
16   -}
17   -
18   -echo $test9999->hi();
19   -?>
19 test/php/benchmarks/manyObjects500.phype
... ... @@ -1,19 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class test500 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 500) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new test500();
15   - $i = $i+1;
16   -}
17   -
18   -echo $test499->hi();
19   -?>
19 test/php/benchmarks/manyObjects5000.phype
... ... @@ -1,19 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class test5000 {
4   - function hi() {
5   - return 'hello world';
6   - }
7   -}
8   -
9   -$i = 0;
10   -$varName = 'test';
11   -while ($i < 5000) {
12   - $$varName = '';
13   - $varName = 'test'.$i;
14   - $$varName = new test5000();
15   - $i = $i+1;
16   -}
17   -
18   -echo $test4999->hi();
19   -?>
18 test/php/benchmarks/tripleDimArray100.phype
... ... @@ -1,18 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$i = 0;
4   -$j = 0;
5   -$k = 0;
6   -while ($i < 100) {
7   - while ($j < 100) {
8   - while ($k < 100) {
9   - $arr[$i][$j][$k] = 'hello world';
10   - $i = $i+1;
11   - $j = $j+1;
12   - $k = $k+1;
13   - }
14   - }
15   -}
16   -echo $arr[99][99][99];
17   -
18   -?>
18 test/php/benchmarks/tripleDimArray1000.phype
... ... @@ -1,18 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$i = 0;
4   -$j = 0;
5   -$k = 0;
6   -while ($i < 1000) {
7   - while ($j < 1000) {
8   - while ($k < 1000) {
9   - $arr[$i][$j][$k] = 'hello world';
10   - $i = $i+1;
11   - $j = $j+1;
12   - $k = $k+1;
13   - }
14   - }
15   -}
16   -echo $arr[999][999][999];
17   -
18   -?>
18 test/php/benchmarks/tripleDimArray10000.phype
... ... @@ -1,18 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$i = 0;
4   -$j = 0;
5   -$k = 0;
6   -while ($i < 10000) {
7   - while ($j < 10000) {
8   - while ($k < 10000) {
9   - $arr[$i][$j][$k] = 'hello world';
10   - $i = $i+1;
11   - $j = $j+1;
12   - $k = $k+1;
13   - }
14   - }
15   -}
16   -echo $arr[9999][9999][9999];
17   -
18   -?>
18 test/php/benchmarks/tripleDimArray500.phype
... ... @@ -1,18 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$i = 0;
4   -$j = 0;
5   -$k = 0;
6   -while ($i < 500) {
7   - while ($j < 500) {
8   - while ($k < 500) {
9   - $arr[$i][$j][$k] = 'hello world';
10   - $i = $i+1;
11   - $j = $j+1;
12   - $k = $k+1;
13   - }
14   - }
15   -}
16   -echo $arr[499][499][499];
17   -
18   -?>
18 test/php/benchmarks/tripleDimArray5000.phype
... ... @@ -1,18 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$i = 0;
4   -$j = 0;
5   -$k = 0;
6   -while ($i < 5000) {
7   - while ($j < 5000) {
8   - while ($k < 5000) {
9   - $arr[$i][$j][$k] = 'hello world';
10   - $i = $i+1;
11   - $j = $j+1;
12   - $k = $k+1;
13   - }
14   - }
15   -}
16   -echo $arr[4999][4999][4999];
17   -
18   -?>
1  test/php/test.js
... ... @@ -1 +0,0 @@
1   -require("")
11 test/php/testcases/arithmetics.phype
... ... @@ -1,11 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -function get42() {
4   - return 42;
5   -}
6   -
7   -$twentyOne = 21;
8   -$crazy = 1*get42()-(get42()/2)+3*2+4+1*2+30-$twentyOne;
9   -
10   -echo $crazy;
11   -?>
8 test/php/testcases/arrayMultiTest.phype
... ... @@ -1,8 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$arr['foo']['bar'] = 'hello';
4   -$arr[1] = 'world';
5   -$arr['foo']['2'] = ' ';
6   -
7   -echo $arr['foo']['bar'].$arr['foo'][2].$arr[1];
8   -?>
7 test/php/testcases/arrayTest.phype
... ... @@ -1,7 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -$arr['foo'] = 'hello';
4   -$arr[1] = 'world';
5   -
6   -echo $arr['foo'].' '.$arr[1];
7   -?>
16 test/php/testcases/binops.phype
... ... @@ -1,16 +0,0 @@
1   -<?
2   -// assertEcho '011-10111201'
3   -$a = 1;
4   -$b = 0;
5   -
6   -echo ($a < $b);
7   -echo ($a > $b);
8   -echo ($a + $b);
9   -echo ($b - $a);
10   -echo ($b . $a);
11   -echo ($a <= $a);
12   -echo ($b >= $b);
13   -echo ($a = $a+$a);
14   -echo ($a = $a-$a);
15   -echo ($a = $a+1);
16   -?>
12 test/php/testcases/boolTest.phype
... ... @@ -1,12 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -if (true) echo 'hello';
4   -if (false) echo -1;
5   -
6   -$a = true;
7   -if ($a) { echo ' '; }
8   -if (!$a) echo -1;
9   -
10   -$foo = 'bar';
11   -if ($foo) echo 'world';
12   -?>
15 test/php/testcases/charDataEcho.phype
... ... @@ -1,15 +0,0 @@
1   -<?
2   -// assertEcho 'hejfarhejfarhej'
3   -$i = 0;
4   -$a = true;
5   -while ($i < 5) {
6   - if ($a) {
7   - ?>hej<?
8   - $a = false;
9   - } else {
10   - ?>far<?
11   - $a = true;
12   - }
13   - $i = $i+1;
14   -}
15   -?>
12 test/php/testcases/classAttrHelloWorld.phype
... ... @@ -1,12 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class test {
4   - private $foo = 'hello world';
5   - function hi() {
6   - echo $this->foo;
7   - }
8   -}
9   -
10   -$foo = new test();
11   -$foo->hi();
12   -?>
10 test/php/testcases/classConstructorHelloWorld.phype
... ... @@ -1,10 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class foo {
4   - function foo() {
5   - echo 'hello world';
6   - }
7   -}
8   -
9   -$foo = new foo();
10   -?>
11 test/php/testcases/classFunctionHelloWorld.phype
... ... @@ -1,11 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -class bar {
4   - function hi() {
5   - echo 'hello world';
6   - }
7   -}
8   -
9   -$foo = new bar();
10   -$foo->hi();
11   -?>
9 test/php/testcases/echoArrayHelloWorld.phype
... ... @@ -1,9 +0,0 @@
1   -<?
2   - // assertEcho 'hello world'
3   - $a[0] = 'hello';
4   - $b[0] = 'world';
5   -
6   - echo $a[0];
7   - echo ' ';
8   - echo $b[0];
9   -?>
8 test/php/testcases/echoFunctionHelloWorld.phype
... ... @@ -1,8 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -function helloWorld() {
4   - return 'hello world';
5   -}
6   -
7   -echo helloWorld();
8   -?>
9 test/php/testcases/echoMultiArrayHelloWorld.phype
... ... @@ -1,9 +0,0 @@
1   -<?
2   - // assertEcho 'hello world'
3   - $a[0][0] = 'hello';
4   - $a[0][1] = 'world';
5   -
6   - echo $a[0][0];
7   - echo ' ';
8   - echo $a[0][1];
9   -?>
9 test/php/testcases/funCall.phype
... ... @@ -1,9 +0,0 @@
1   -<?
2   -// assertEcho 'hello world'
3   -
4   -function test($a) {
5   - return $a;
6   -}
7   -
8   -echo test('hello world');
9   -?>
7 test/php/testcases/varAssignSelf.phype
... ... @@ -1,7 +0,0 @@
1   -<?
2   -// assertEcho '42'
3   -$a = 41;
4   -
5   -$a = $a+1;
6   -echo $a;
7   -?>
8 test/php/testcases/whileTest.phype
... ... @@ -1,8 +0,0 @@
1   -<?
2   -// assertEcho '0123456789'
3   -$i = 0;
4   -while ($i < 10) {
5   - echo $i;
6   - $i = $i+1;
7   -}
8   -?>

0 comments on commit 36b649d

Please sign in to comment.
Something went wrong with that request. Please try again.