[svn:PHP-Sandwich] rev 1028 - PHP-Sandwich/trunk/t

[email protected] 28 Apr 2005 16:46:41 -0000
Newsgroups perl.php.sandwich.dev
Message-ID <[email protected]>
Author: shughes
Date: Thu Apr 28 09:46:41 2005
New Revision: 1028

Added:
   PHP-Sandwich/trunk/t/13.t   (contents, props changed)
Log:
if php encounters a fatal error, sandwich will segv, document
this problem with test case 13


Added: PHP-Sandwich/trunk/t/13.t
==============================================================================
--- (empty file)
+++ PHP-Sandwich/trunk/t/13.t	Thu Apr 28 09:46:41 2005
@@ -0,0 +1,14 @@
+#!/opt/ecelerity/3rdParty/bin/perl
+use strict;
+use Test::More tests => 5;
+
+BEGIN {
+    use_ok 'PHP' or die;
+    use_ok 'PHP::Interpreter' or die;
+}
+
+diag "Testing basic function autoloadind";
+ok my $p = PHP::Interpreter->new, "Create new PHP interpreter";
+$p->eval('function callme() { foo(); }');
+is $p->callme(),  'hello george',
+  'We should get the proper return value of the "hello" function"';