Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 8874

php-manual-en-7.2.11-1.mga7.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Testing an extension</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.structure.lifecycle.html">Life cycle of an extension</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.pdo.html">PDO Driver How-To</a></div>
 <div class="up"><a href="internals2.structure.html">Extension structure</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="internals2.structure.tests" class="sect1">
  <h2 class="title">Testing an extension</h2>

  <p class="simpara">
   One of the accepted requirements of good programming is testing. PHP provides
   a test harness for unit regression tests, in the form of a script called
   <strong class="command">run-tests.php</strong>.
  </p>

  <p class="simpara">
   Tests for a particular module are stored in the <var class="filename">tests/</var>
   subdirectory of the module&#039;s folder, and have a <var class="filename">.phpt</var>
   extension. For details of the PHPT format, see
   <a href="http://qa.php.net/" class="link external">&raquo;&nbsp;http://qa.php.net/</a>.
  </p>

 </div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="internals2.structure.lifecycle.html">Life cycle of an extension</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="internals2.pdo.html">PDO Driver How-To</a></div>
 <div class="up"><a href="internals2.structure.html">Extension structure</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>