<?xml version="1.0"?>
<?xml-stylesheet
href="http://www.w3.org/2000/08/w3c-synd/style.css" type="text/css"
?>
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://purl.org/rss/1.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel rdf:about="http://pear.php.net/bugs/search.php">
    <title>PEAR Bug Search Results</title>
    <link>http://pear.php.net/bugs/search.php?cmd=display&amp;package_name%5B0%5D=PHPUnit</link>
    <description>Search Results</description>
    <dc:language>en-us</dc:language>
    <dc:creator>pear-webmaster@lists.php.net</dc:creator>
    <dc:publisher>pear-webmaster@lists.php.net</dc:publisher>
    <admin:generatorAgent rdf:resource="http://pear.php.net/bugs"/>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <sy:updateBase>2000-01-01T12:00+00:00</sy:updateBase>
    <items>
     <rdf:Seq>
      <rdf:li rdf:resource="http://pear.php.net/bug/19735" />
      <rdf:li rdf:resource="http://pear.php.net/bug/19649" />
      <rdf:li rdf:resource="http://pear.php.net/bug/18213" />

     </rdf:Seq>
    </items>
  </channel>

  <image rdf:about="http://pear.php.net/gifs/pearsmall.gif">
    <title>PEAR Bugs</title>
    <url>http://pear.php.net/gifs/pearsmall.gif</url>
    <link>http://pear.php.net/bugs</link>
  </image>

    <item rdf:about="http://pear.php.net/bug/19735">
      <title>PHPUnit: Documentation Problem 19735 [Open] PHPUnit Tutorial needs significant updating</title>
      <link>http://pear.php.net/bugs/19735</link>
      <content:encoded><![CDATA[<pre>PHPUnit Documentation Problem
Reported by julianharty
2012-12-07T17:29:20+00:00
PHP: 5.3.15 OS: Mac OSX 10.7.5 Package Version: Unknown

Description:
------------
The tutorial 
http://pear.php.net/manual/en/package.php.phpunit.intro.php 
is out of date for the current version of PHPUnit and no longer 
reflects the current class structures or methods.

Here are the main changes I made to get the code to compile 
and run:
replace: 
require_once 'PHPUnit.php'; 
with
require_once 'PHPUnit/Autoload.php';


class StringTest extends PHPUnit_Framework_TestCase

Delete the constructor method in testcase.php.

Another useful change is to replace the AssertTrue call in 
testAdd() with AssertEquals($expected, $result);

I cannot find a way to get stringtest.php to run the test suite; 
the call to PHPUnit::run($suite); fails with:
PHP Fatal error:  Class 'PHPUnit' not found in 
/Users/julianharty/sandbox/php/stringtest.php on line 7

I ended up simply calling testcase.php directly e.g.
phpunit testcase.php

Should we still be able to run a test suite programatically? if 
so, how? The PHPUnit documentation at 
http://www.phpunit.de/manual/current/en/organizing-
tests.html doesn't provide an example of creating and running 
a suite of tests in PHP. Instead it describes 2 other ways of 
running the various tests. Perhaps it'd be worth adding a link 
to that page to this documentation? (rather than repeating 
what it says).

Test script:
---------------
&lt;?php

require_once 'testcase.php';
require_once 'PHPUnit/Autoload.php';

$suite  = new PHPUnit_Framework_TestSuite(&quot;StringTest&quot;);
$result = PHPUnit::run($suite);

echo $result -&gt; toString();
?&gt;

Expected result:
----------------
I expected the test suite to run the 3 tests in class StringTest (in 
file testcase.php)



Actual result:
--------------
PHP Fatal error:  Class 'PHPUnit' not found in 
/Users/julianharty/sandbox/php/stringtest.php on line 7</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHPUnit Documentation Problem
Reported by julianharty
2012-12-07T17:29:20+00:00
PHP: 5.3.15 OS: Mac OSX 10.7.5 Package Version: Unknown

Description:
------------
The tutorial 
http://pear.php.net/manual/en/package.php.phpunit.intro.php 
is out of date for the current version of PHPUnit and no longer 
reflects the current class structures or methods.

Here are the main changes I made to get the code to compile 
and run:
replace: 
require_once 'PHPUnit.php'; 
with
require_once 'PHPUnit/Autoload.php';


class StringTest extends PHPUnit_Framework_TestCase

Delete the constructor method in testcase.php.

Another useful change is to replace the AssertTrue call in 
testAdd() with AssertEquals($expected, $result);

I cannot find a way to get stringtest.php to run the test suite; 
the call to PHPUnit::run($suite); fails with:
PHP Fatal error:  Class 'PHPUnit' not found in 
/Users/julianharty/sandbox/php/stringtest.php on line 7

I ended up simply calling testcase.php directly e.g.
phpunit testcase.php

Should we still be able to run a test suite programatically? if 
so, how? The PHPUnit documentation at 
http://www.phpunit.de/manual/current/en/organizing-
tests.html doesn't provide an example of creating and running 
a suite of tests in PHP. Instead it describes 2 other ways of 
running the various tests. Perhaps it'd be worth adding a link 
to that page to this documentation? (rather than repeating 
what it says).

Test script:
---------------
&lt;?php

require_once 'testcase.php';
require_once 'PHPUnit/Autoload.php';

$suite  = new PHPUnit_Framework_TestSuite(&quot;StringTest&quot;);
$result = PHPUnit::run($suite);

echo $result -&gt; toString();
?&gt;

Expected result:
----------------
I expected the test suite to run the 3 tests in class StringTest (in 
file testcase.php)



Actual result:
--------------
PHP Fatal error:  Class 'PHPUnit' not found in 
/Users/julianharty/sandbox/php/stringtest.php on line 7</pre>]]></description>
      <dc:date>2012-12-07T17:29:20+00:00</dc:date>
      <dc:creator>julianharty &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHPUnit Documentation Problem</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/19649">
      <title>PHPUnit: Bug 19649 [Open] Error while generating coverage report in HTML format</title>
      <link>http://pear.php.net/bugs/19649</link>
      <content:encoded><![CDATA[<pre>PHPUnit Bug
Reported by saiman
2012-10-11T20:01:32+00:00
PHP: 5.3.10 OS: Ubuntu 12.04 Package Version: 

Description:
------------
Generating code coverage report in HTML format ...
Notice: Undefined offset: 62 in 
/usr/share/php/PHP/CodeCoverage/Util.php on line 126</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHPUnit Bug
Reported by saiman
2012-10-11T20:01:32+00:00
PHP: 5.3.10 OS: Ubuntu 12.04 Package Version: 

Description:
------------
Generating code coverage report in HTML format ...
Notice: Undefined offset: 62 in 
/usr/share/php/PHP/CodeCoverage/Util.php on line 126</pre>]]></description>
      <dc:date>2012-10-11T20:01:32+00:00</dc:date>
      <dc:creator>saiman &amp;#x61;&amp;#116; thefreeart &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHPUnit Bug</dc:subject>
    </item>
    <item rdf:about="http://pear.php.net/bug/18213">
      <title>PHPUnit: Bug 18213 [Open] Fatal error Assert not found</title>
      <link>http://pear.php.net/bugs/18213</link>
      <content:encoded><![CDATA[<pre>PHPUnit Bug
Reported by godzinho
2011-01-24T03:56:17+00:00
PHP: 5.3.0 OS: Vista Package Version: 1.9.1

Description:
------------
Hello,

I think I have a problem with the pear framework.
I wrote a little test which extends the PHPUnit_Framework_TestCase and when I want to execute it, I have a fatal error.

This appends because the PHPUnit_Framework_Assert class is not found at line 101 of the PHPUnit_Framework_TestCase class.

Test script:
---------------
&lt;?php
require_once &quot;PHPUnit/Framework/TestCase.php&quot;;

class AddressTest extends PHPUnit_Framework_TestCase {
	protected $_address;
	
	protected function setUp(){
		$this-&gt;_address = new Address(&quot;6&quot;, &quot;rue des oiseaux&quot;, &quot;RAS&quot;, &quot;31000&quot;, &quot;Toulouse&quot;, &quot;France&quot;);
	}
	
	public function testToString(){
		$this-&gt;assertEquals(&quot;Toulouse(31000)&quot;,$this-&gt;_address-&gt;toString());
	}
}
?&gt;

Expected result:
----------------
I took this example on the pear's official website.

phpunit AddressTest
PHPUnit 3.0.0 by Sebastian Bergmann.

..

Time: 00:00

OK (1 tests)

Actual result:
--------------
Fatal error: Class 'PHPUnit_Framework_Assert' not found in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Framework\TestCase.php on line 101
PHP Fatal error:  Class 'PHPUnit_Framework_Assert' not found in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Framework\TestCase.php on line 101</pre>]]></content:encoded>
      <description><![CDATA[<pre>PHPUnit Bug
Reported by godzinho
2011-01-24T03:56:17+00:00
PHP: 5.3.0 OS: Vista Package Version: 1.9.1

Description:
------------
Hello,

I think I have a problem with the pear framework.
I wrote a little test which extends the PHPUnit_Framework_TestCase and when I want to execute it, I have a fatal error.

This appends because the PHPUnit_Framework_Assert class is not found at line 101 of the PHPUnit_Framework_TestCase class.

Test script:
---------------
&lt;?php
require_once &quot;PHPUnit/Framework/TestCase.php&quot;;

class AddressTest extends PHPUnit_Framework_TestCase {
	protected $_address;
	
	protected function setUp(){
		$this-&gt;_address = new Address(&quot;6&quot;, &quot;rue des oiseaux&quot;, &quot;RAS&quot;, &quot;31000&quot;, &quot;Toulouse&quot;, &quot;France&quot;);
	}
	
	public function testToString(){
		$this-&gt;assertEquals(&quot;Toulouse(31000)&quot;,$this-&gt;_address-&gt;toString());
	}
}
?&gt;

Expected result:
----------------
I took this example on the pear's official website.

phpunit AddressTest
PHPUnit 3.0.0 by Sebastian Bergmann.

..

Time: 00:00

OK (1 tests)

Actual result:
--------------
Fatal error: Class 'PHPUnit_Framework_Assert' not found in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Framework\TestCase.php on line 101
PHP Fatal error:  Class 'PHPUnit_Framework_Assert' not found in C:\wamp\bin\php\php5.3.0\PEAR\PHPUnit\Framework\TestCase.php on line 101</pre>]]></description>
      <dc:date>2011-01-24T22:51:13+00:00</dc:date>
      <dc:creator>ccompeyron &amp;#x61;&amp;#116; gmail &amp;#x64;&amp;#111;&amp;#x74; com</dc:creator>
      <dc:subject>PHPUnit Bug</dc:subject>
    </item>
</rdf:RDF>
