Home » Networking » Net_DNSBL » Bug #7656
unittest is failed.
Details
| Submitted | 2006-05-18 04:45 UTC |
|---|---|
| From | elf at php dot net |
| Assigned | nohn |
| Status | Closed |
| Package | Net_DNSBL |
| PHP Version | 5.1.4 |
| OS | Linux |
| Roadmaps | (Not assigned) |
Comments
[2006-05-18 04:45 UTC] elf at php dot net
Description:
------------
I performed unittest of Net_DNSBL.
As a result, some tests failed.
Test script:
---------------
unittest included in Net_DNSBL.
pear/tests/Net_DNSBL/tests/testNetDNSBL.php
pear/tests/Net_DNSBL/tests/testNetDNSBLSURBL.php
Expected result:
----------------
It succeeds in all tests.
Actual result:
--------------
* include of file is failed.
testNetDNSBL.php:
-require_once "../DNSBL.php";
+require_once "Net/DNSBL.php";
testNetDNSBLSURBL.php:
-require_once "../SURBL.php";
+require_once "Net/DNSBL/SURBL.php";
The following is the running result of phpunit.
============================================================
$ phpunit --testdox-text /tmp/foo testNetDNSBL.php
PHPUnit 2.3.5 by Sebastian Bergmann.
.F.F..
Time: 3.849479
There were 2 failures:
1) testTrustworthyHostsArentListed(testNetDNSBL)
expected same: <> was not: <1>
/usr/share/php/pear/tests/Net_DNSBL/tests/testNetDNSBL.php:18
2) testSettersAndLookups(testNetDNSBL)
expected same: <> was not: <1>
/usr/share/php/pear/tests/Net_DNSBL/tests/testNetDNSBL.php:31
FAILURES!!!
Tests run: 6, Failures: 2, Errors: 0, Incomplete Tests: 0.
============================================================
$ phpunit --testdox-text /tmp/foo testNetDNSBLSURBL.php
PHPUnit 2.3.5 by Sebastian Bergmann.
.FF
Time: 1.019245
There were 2 failures:
1) testNoSpamUrlsNeverGetReportedAsSpam(testNetDNSBLSURBL)
expected same: <> was not: <1>
/usr/share/php/pear/tests/Net_DNSBL/tests/testNetDNSBLSURBL.php:36
2) testMixedSpamAndNospamUrlsWorkAsExpected(testNetDNSBLSURBL)
expected same: <> was not: <1>
/usr/share/php/pear/tests/Net_DNSBL/tests/testNetDNSBLSURBL.php:45
FAILURES!!!
Tests run: 3, Failures: 2, Errors: 0, Incomplete Tests: 0.
============================================================
[2006-05-20 13:25 UTC] nohn at php dot net
Thank you for your bug report. This issue has been fixed
in the latest released version of the package, which you can download at
http://pear.php.net/get/Net_DNSBL
The tests did not really fail, they were just not designed to run from this directory.