Note that there are some explanatory texts on larger screens.

plurals
  1. POPHPUnit from command line - list of dependancy files displayed. How can I make it display only the test script?
    text
    copied!<p>I have installed PHPUnit on Windows 7, with PHP and Pear.</p> <p>I have a basic test script, to start with:</p> <pre><code>&lt;?php class StackTest extends PHPUnit_Framework_TestCase { public function testTest() { $this-&gt;assertTrue(false); } } </code></pre> <p>I'm running it from the command prompt as:</p> <pre><code>phpunit unittest testTest.php </code></pre> <p>And getting the following return:</p> <pre><code>PHPUnit 3.6.5 by Sebastian Bergmann. F Time: 0 seconds, Memory: 2.75Mb There was 1 failure: 1) StackTest::testTest Failed asserting that false is true. C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\Constraint.php:145 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\Constraint.php:92 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\Assert.php:2100 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\Assert.php:854 C:\Users\lbassett\Dropbox\Projects\Test\testTest.php:10 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\TestCase.php:939 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\TestCase.php:801 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\TestResult.php:649 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\TestCase.php:748 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\TestSuite.php:772 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\Framework\TestSuite.php:745 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\TextUI\TestRunner.php:325 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\TextUI\Command.php:187 C:\Program Files (x86)\PHP\PEAR\pear\PHPUnit\TextUI\Command.php:125 C:\Program Files (x86)\PHP\PEAR\phpunit:44 FAILURES! Tests: 1, Assertions: 1, Failures: 1. </code></pre> <p>My problem is the long list of different files listed. </p> <p>I only want to see my test scrip there. Am I missing something?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload