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

[email protected] 15 Apr 2005 20:37:23 -0000
Newsgroups perl.php.sandwich.dev
Message-ID <[email protected]>
Author: gschlossnagle
Date: Fri Apr 15 13:37:23 2005
New Revision: 994

Added:
   PHP-Sandwich/trunk/t/1.t   (contents, props changed)
   PHP-Sandwich/trunk/t/3.t
      - copied unchanged from rev 993, PHP-Sandwich/trunk/t/3.pl
Removed:
   PHP-Sandwich/trunk/t/3.pl
Log:
move to Test::More


Added: PHP-Sandwich/trunk/t/1.t
==============================================================================
--- (empty file)
+++ PHP-Sandwich/trunk/t/1.t	Fri Apr 15 13:37:23 2005
@@ -0,0 +1,12 @@
+#!/opt/ecelerity/3rdParty/bin/perl 
+use strict;
+use Test::More tests => 5;
+
+BEGIN {
+    use_ok 'PHP' or die;
+    use_ok 'PHP::Interpreter' or die;
+}
+
+ok my $p = new PHP::Interpreter(), "Create new PHP interpreter";
+ok my $a1 = $p->include('test.inc')->call('ident', 1), "Including a PHP file and executing a function off it";
+is $a1, 1, 'We should get the proper value from the ident() function';