Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 2.2.0

Request #12209 Unit tests missing
Submitted: 2007-10-09 07:54 UTC
From: beni Assigned: beni
Status: Closed Package: Net_LDAP2
PHP Version: 5.2.4 OS:
Roadmaps: 2.1.0    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 47 - 6 = ?

 
 [2007-10-09 07:54 UTC] beni (Benedikt Hallinger)
Description: ------------ Prior releasing 1.0 some unit tests must be inserted. For the 1.0 release, at least tests for static util methods (methods not depending on a LDAP server) should be implemented.

Comments

 [2007-10-11 11:05 UTC] beni (Benedikt Hallinger)
Tests for Net_LDAP_Filter included, Net_LDAP_Util is in the forge.
 [2007-10-17 13:39 UTC] beni (Benedikt Hallinger)
Tests for Filter and Util class are ready. Changed the Bug to Feature request.
 [2007-10-18 08:37 UTC] beni (Benedikt Hallinger)
1.0 Release can go out :) Other tests will be introduced by time.
 [2008-01-21 08:22 UTC] beni (Benedikt Hallinger)
Tests for important Net_LDAP functions are still missing.
 [2008-02-27 07:45 UTC] beni (Benedikt Hallinger)
Net_LDAP tests nearly done
 [2009-07-18 18:27 UTC] doconnor (Daniel O'Connor)
Running them from SVN (and the same way the unit test runner does) results in errors. It's easy to fix the SVN directory structure now we're on SVN :) clockwerx@clockwerx-desktop:~/pear-svn/packages/Net_LDAP2/trunk$ php tests/AllTests.php Warning: require_once(Net/LDAP2/Filter.php): failed to open stream: No such file or directory in /home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/Net_LDAP2_FilterTest.php on line 10 Call Stack: 0.0011 72860 1. {main}() /home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/AllTests.php:0 0.3386 4017136 2. require_once('/home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/Net_LDAP2_FilterTest.php') /home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/AllTests.php:12 Fatal error: require_once(): Failed opening required 'Net/LDAP2/Filter.php' (include_path='.:/usr/share/php:/usr/share/pear') in /home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/Net_LDAP2_FilterTest.php on line 10 Call Stack: 0.0011 72860 1. {main}() /home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/AllTests.php:0 0.3386 4017136 2. require_once('/home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/Net_LDAP2_FilterTest.php') /home/clockwerx/pear-svn/packages/Net_LDAP2/trunk/tests/AllTests.php:12
 [2011-07-18 18:57 UTC] beni (Benedikt Hallinger)
-Status: Assigned +Status: Open
 [2012-01-07 05:18 UTC] danielc (Daniel Convissor)
The unit tests are now running fine for me. I just committed a fix to AllTests.php to specify the paths for the test files. I also committed a fix to the tests themselves to use PHPUnit's latest test method names since assertType() no longer exists.
 [2013-12-10 14:20 UTC] beni (Benedikt Hallinger)
-Status: Open +Status: Closed -Assigned To: +Assigned To: beni
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better.