Skip to content

Commit 6696c54

Browse files
committed
Get tests working
1 parent a8ef226 commit 6696c54

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+2255
-217
lines changed

run-test

Lines changed: 2113 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
--TEST--
2-
Check for boxwood presence
3-
--SKIPIF--
4-
<?php if (!extension_loaded("boxwood")) print "skip"; ?>
5-
--FILE--
61
<?php
72
echo "boxwood extension is available";
83
/*
@@ -17,5 +12,3 @@
1712
writing regression tests
1813
*/
1914
?>
20-
--EXPECT--
21-
boxwood extension is available

tests/001.php.expect

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
boxwood extension is available

tests/001.php.skipif

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php if (!extension_loaded("boxwood")) print "skip"; ?>

tests/002.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
<?php
2+
$r = boxwood_new();
3+
var_dump($r);
4+
?>

tests/002.php.expectf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
resource(%d) of type (Boxwood)

tests/002.php.skipif

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<?php if (!extension_loaded("boxwood")) print "skip"; ?>

tests/002.phpt

Lines changed: 0 additions & 11 deletions
This file was deleted.
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
1-
--TEST--
2-
Add a word
3-
--SKIPIF--
4-
<?php if (!extension_loaded("boxwood")) print "skip"; ?>
5-
--FILE--
61
<?php
72
$r = boxwood_new();
83
$a = boxwood_add_text($r, "monkey");
94
$b = boxwood_add_text($r, "salad");
105
print "$a,$b";
116
?>
12-
--EXPECT--
13-
6,5

tests/003.php.expect

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6,5

0 commit comments

Comments
 (0)