Author: Christoph M. Becker (cmb69)
Date: 2024-09-17T15:19:00+02:00

Commit: 
https://github.com/php/web-qa/commit/518ee5cf2b6ecd5d9a9f8c963f415edd462df978
Raw diff: 
https://github.com/php/web-qa/commit/518ee5cf2b6ecd5d9a9f8c963f415edd462df978.diff

Fix xfailif.php sample

These samples are not meant to be executed, but rather to be shown.

Changed paths:
  M  sample_tests/xfailif.php


Diff:

diff --git a/sample_tests/xfailif.php b/sample_tests/xfailif.php
index b597d8ef..a9080ce3 100644
--- a/sample_tests/xfailif.php
+++ b/sample_tests/xfailif.php
@@ -1,4 +1,16 @@
---TEST--
+<?php
+include("../include/functions.php");
+
+$TITLE = "Sample Test [PHP-QAT: Quality Assurance Team]";
+$SITE_UPDATE = date("D M d H:i:s Y T", filectime(__FILE__));
+
+common_header();
+?>
+
+<div style="padding: 10px">
+<h1>Sample Test: skipif2.inc</h1>
+<p>Back to &quot;<a href="../phpt_details.php">PHPT Test File 
Layout</a>&quot;</p>
+<pre>--TEST--
 Handling of errors during linking
 --INI--
 opcache.enable=1
@@ -6,13 +18,20 @@
 opcache.optimization_level=-1
 opcache.preload={PWD}/preload_inheritance_error_ind.inc
 --SKIPIF--
-<?php
+&lt;?php
 require_once('skipif.inc');
 if (getenv('SKIP_ASAN')) die('xfail Startup failure leak');
-?>
+?&gt;
 --FILE--
-<?php
+&lt;?php
 echo "Foobar\n";
-?>
+?&gt;
 --EXPECTF--
 Fatal error: Declaration of B::foo($bar) must be compatible with A::foo() in 
%spreload_inheritance_error.inc on line 8
+</pre>
+<p>Back to &quot;<a href="../phpt_details.php">PHPT Test File 
Layout</a>&quot;</p>
+</div>
+
+<?php
+common_footer();
+?>

Reply via email to