File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- $ class = test_class (" class " , " works " );
3
+ $ class = test_class (' class ' , ' works ' );
4
4
5
5
echo $ class ->test ();
Original file line number Diff line number Diff line change 1
1
<?php
2
2
3
- try {
4
- echo test_number_unsigned (-12 );
5
- } catch (\Throwable $ th ) {
6
- echo "thrown " ;
7
- echo ' ' ;
8
- }
9
-
10
3
echo test_number_unsigned (0 );
11
4
echo ' ' ;
12
5
echo test_number_unsigned (12 );
6
+
7
+ try {
8
+ echo test_number_unsigned (-12 );
9
+ } catch (\Throwable $ th ) {
10
+ echo ' invalid ' ;
11
+ }
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ mod tests {
160
160
161
161
#[ test]
162
162
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 " ) ;
164
164
}
165
165
166
166
#[ test]
You can’t perform that action at this time.
0 commit comments