Skip to content

Commit 518ee5c

Browse files
committed
Fix xfailif.php sample
These samples are not meant to be executed, but rather to be shown.
1 parent 0572ec3 commit 518ee5c

File tree

1 file changed

+24
-5
lines changed

1 file changed

+24
-5
lines changed

sample_tests/xfailif.php

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,37 @@
1-
--TEST--
1+
<?php
2+
include("../include/functions.php");
3+
4+
$TITLE = "Sample Test [PHP-QAT: Quality Assurance Team]";
5+
$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
6+
7+
common_header();
8+
?>
9+
10+
<div style="padding: 10px">
11+
<h1>Sample Test: skipif2.inc</h1>
12+
<p>Back to &quot;<a href="../phpt_details.php">PHPT Test File Layout</a>&quot;</p>
13+
<pre>--TEST--
214
Handling of errors during linking
315
--INI--
416
opcache.enable=1
517
opcache.enable_cli=1
618
opcache.optimization_level=-1
719
opcache.preload={PWD}/preload_inheritance_error_ind.inc
820
--SKIPIF--
9-
<?php
21+
&lt;?php
1022
require_once('skipif.inc');
1123
if (getenv('SKIP_ASAN')) die('xfail Startup failure leak');
12-
?>
24+
?&gt;
1325
--FILE--
14-
<?php
26+
&lt;?php
1527
echo "Foobar\n";
16-
?>
28+
?&gt;
1729
--EXPECTF--
1830
Fatal error: Declaration of B::foo($bar) must be compatible with A::foo() in %spreload_inheritance_error.inc on line 8
31+
</pre>
32+
<p>Back to &quot;<a href="../phpt_details.php">PHPT Test File Layout</a>&quot;</p>
33+
</div>
34+
35+
<?php
36+
common_footer();
37+
?>

0 commit comments

Comments
 (0)