Re: [svn:PHP-Sandwich] rev 1416 - in PHP-Sandwich/trunk: . lib/PHP t

[email protected] (David Wheeler) Tue, 26 Jul 2005 07:37:21 -0700
Newsgroups perl.php.sandwich.dev
Message-ID <[email protected]>
On Jul 25, 2005, at 7:39 PM, [email protected] wrote:

> Not the fix I want for 20, but a fix nonetheless.

Yeah, but now I'm getting test failures in 18.t and 19.t:

PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"  
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/1.....1..6
ok 1 - use PHP::Interpreter;
Useless use of a constant in void context at t/1.t line 15.
ok 2 - Create new PHP interpreter
ok 3 - Add test.inc
ok 4 - Including a PHP file and executing a function off it
ok 5 - We should get the proper value from the ident() function
ok 6 - Failed includes should die
ok
t/10....1..5
# Instantiate an internal class with PHP::Interpreter::instantiate()
ok 1 - use PHP::Interpreter;
ok 2 - use PHP::Interpreter::Class;
ok 3 - Create new PHP interpreter
ok 4 - class membership correct
ok 5 - class inherits correctly
ok
t/11....1..3
ok 1 - use PHP::Interpreter;
# Testing basic function autoloadind
ok 2 - Create new PHP interpreter
ok 3 - We should get the proper return value of the "callme" function
ok
t/12....1..6
ok 1 - use PHP::Interpreter;
# Testing basic function autoloadind
ok 2 - Create new PHP interpreter
ok 3 - Add a "callme" Perl::getInstance() wrapper
ok 4 - We should get a perl object back from Perl::getInstance()
ok 5 - Add a "callme2" wrapper
ok 6
ok
t/13....1..3
ok 1 - use PHP::Interpreter;
# Testing basic function autoloadind
ok 2 - Create new PHP interpreter
ok 3 - Fatal PHP errors can be caught

Fatal error: Call to undefined function foo() in  
PHP::Interpreter::eval on line 1
ok
t/14....1..7
ok 1 - use PHP::Interpreter;
# Testing basic function autoloadind
ok 2 - Create new PHP interpreter
ok 3 - Define PHP function that returns Perl values
ok 4 - Check return value of PHP foo()
ok 5 - Check return value of PHP bar()
ok 6 - Test use of Perl::setVariable
ok 7 - Test scalar version of setVariable
ok
t/15....1..6
# Testing Perl::call
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - Test use of Perl::call
ok 4 - Check return value of call
ok 5 - Test use of Perl::call via PHP overloading
ok 6 - Check return value of call
ok
t/16....1..6
# Testing passing blessed references into PHP
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - Checking class name
ok 4 - Checking property access
ok 5 - Checking method calls
ok 6 - Checking iterators
ok
t/17....1..6
# Testing passing resources out of PHP
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - Open a file with PHP
ok 4 - Write to the file
ok 5 - Close the file
ok 6 - File contents are correct
ok
t/18....1..6
# Testing Passing interpreter globals
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - Checking $_GET
ok 4 - Checking $_GET is an autoglobal
ok 5 - Checking $_REQUEST population
dubious
     Test returned status 0 (wstat 10, 0xa)
DIED. FAILED test 6
     Failed 1/6 tests, 83.33% okay
t/19....1..14
# Testing Output Buffering
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
dubious
     Test returned status 0 (wstat 10, 0xa)
DIED. FAILED tests 3-14
     Failed 12/14 tests, 14.29% okay
t/2.....# Testing basic function autoloadind
1..5
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - Add a "hello" function
ok 4 - We should get the proper return value of the "hello" function"
ok 5 - A simple eval should return the return value
ok
t/20....1..3
ok 1 - use PHP::Interpreter;
ok 2 - Add an intepreter to foo
ok 3 - Invalid code causes a croak()
ok
t/3.....1..5
ok 1 - use PHP::Interpreter;
# Testing passing Perl AVs to PHP functions.
ok 2 - Create new PHP interpreter
ok 3 - include PHP testing suite
ok 4 - Pass an AV into PHP, return an AV.
ok 5 - Checking arrays are identical.
ok
t/4.....1..5
ok 1 - use PHP::Interpreter;
# Test pashing hashes from Perl->PHP->Perl
ok 2 - Create new PHP interpreter
ok 3 - include() PHP testing functions.
ok 4 - Pass a hash into PHP, recieve a hash back
ok 5 - Checking the return hash matches the passed hash.
ok
t/5.....1..5
# Testing passing and return nested arrays.
ok 1 - use PHP::Interpreter;
ok 2 - Creating a new PHP::Interpreter.
ok 3 - including PHP testing functions.
ok 4 - Pass in a nested array and return it.
ok 5 - Testing that return array equals passed array.
ok
t/6.....1..3
# Check failed evals
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - eval error caught
ok
t/7.....1..8
# 3 ways of calling methods.
ok 1 - use PHP::Interpreter;
ok 2 - Create new PHP interpreter
ok 3 - Including a PHP file and executing a function off iti via call
ok 4 - Create new PHP interpreter
ok 5 - Including a PHP file and executing a function off iti via  
AUTOLOAD
ok 6 - Create new PHP interpreter
ok 7 - Including a file
ok 8 - ... and executing a function off it via AUTOLOAD (2)
ok
t/8.....1..8
# 3 ways of calling methods.
ok 1 - use PHP::Interpreter;
ok 2 - use PHP::Interpreter::Class;
ok 3 - Create new PHP interpreter
ok 4 - class membership correct
ok 5 - attribute access
ok 6 - attribute writing
ok 7 - function calls
ok 8 - class inherits correctly
ok
t/9.....1..8
# Instantiate a userland class with PHP::Interpreter::instantiate()
ok 1 - use PHP::Interpreter;
ok 2 - use PHP::Interpreter::Class;
ok 3 - Create new PHP interpreter
ok 4 - class membership correct
ok 5 - attribute access
ok 6 - attribute writing
ok 7 - function calls
ok 8 - class inherits correctly
ok
Failed Test Stat Wstat Total Fail  Failed  List of Failed
------------------------------------------------------------------------ 
-------
t/18.t         0    10     6    2  33.33%  6
t/19.t         0    10    14   24 171.43%  3-14
Failed 2/20 test scripts, 90.00% okay. 13/118 subtests failed, 88.98%  
okay.
make: *** [test_dynamic] Error 25

Best,

David