Skip to content

Commit 216918a

Browse files
fix: some leftovers in tests
1 parent a4c61df commit 216918a

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

tests/integration/class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?php
22

3-
$class = test_class("class", "works");
3+
$class = test_class('class', 'works');
44

55
echo $class->test();

tests/integration/number_unsigned.php

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
<?php
22

3-
try {
4-
echo test_number_unsigned(-12);
5-
} catch (\Throwable $th) {
6-
echo "thrown";
7-
echo ' ';
8-
}
9-
103
echo test_number_unsigned(0);
114
echo ' ';
125
echo test_number_unsigned(12);
6+
7+
try {
8+
echo test_number_unsigned(-12);
9+
} catch (\Throwable $th) {
10+
echo ' invalid';
11+
}

tests/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ mod tests {
160160

161161
#[test]
162162
fn number_unsigned_works() {
163-
assert_eq!(run_php("number_unsigned.php"), "thrown 0 12");
163+
assert_eq!(run_php("number_unsigned.php"), "0 12 invalid");
164164
}
165165

166166
#[test]

0 commit comments

Comments
 (0)