<!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'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">» 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>