Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into ValidatorMessages
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 30 changed files with 18 additions and 134 deletions.
2 changes: 1 addition & 1 deletion src/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ protected function markAsNew($new)
* Tells if the node is considered as new (not present on the server)
*
* Please note, that this doesn't tell you if the node is present on the server.
* Use {@link exits()} to see if a node is already there.
* Use {@link exists()} to see if a node is already there.
*
* @return bool
*/
Expand Down
4 changes: 0 additions & 4 deletions test/AbstractOnlineTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;

use Zend\Ldap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
abstract class AbstractOnlineTestCase extends AbstractTestCase
Expand Down
4 changes: 0 additions & 4 deletions test/AbstractTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;

use Zend\Ldap\Node;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/AttributeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;

use Zend\Ldap\Attribute;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class AttributeTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/BindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;
Expand All @@ -20,9 +19,6 @@
*/

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class BindTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/CanonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;
Expand All @@ -20,9 +19,6 @@
*/

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class CanonTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/ChangePasswordTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;
Expand All @@ -15,9 +14,6 @@
use Zend\Ldap\Node;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/

Expand Down
4 changes: 0 additions & 4 deletions test/ConnectTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;
Expand All @@ -20,9 +19,6 @@
*/

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class ConnectTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/Converter/ConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Converter;
Expand All @@ -15,9 +14,6 @@
use Zend\Ldap\Converter\Converter;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class ConverterTest extends \PHPUnit_Framework_TestCase
Expand Down
4 changes: 0 additions & 4 deletions test/CopyRenameTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;

use Zend\Ldap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class CopyRenameTest extends AbstractOnlineTestCase
Expand Down
4 changes: 0 additions & 4 deletions test/CrudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;
Expand All @@ -14,9 +13,6 @@
use Zend\Ldap\Exception;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class CrudTest extends AbstractOnlineTestCase
Expand Down
28 changes: 12 additions & 16 deletions test/Dn/CreationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Dn;
Expand All @@ -14,9 +13,6 @@
use Zend\Ldap\Exception;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Dn
*/
Expand Down Expand Up @@ -116,35 +112,35 @@ public function testDnCreationWithDifferentCaseFoldings()
$dnString3 = 'cn=Baker\\, Alice,cn=Users+ou=Lab,dc=example,dc=com';

$dn = Ldap\Dn::fromString($dnString1, null);
$this->assertEquals($dnString1, (string)$dn);
$this->assertEquals($dnString1, (string) $dn);
$dn->setCaseFold(Ldap\Dn::ATTR_CASEFOLD_UPPER);
$this->assertEquals($dnString2, (string)$dn);
$this->assertEquals($dnString2, (string) $dn);
$dn->setCaseFold(Ldap\Dn::ATTR_CASEFOLD_LOWER);
$this->assertEquals($dnString3, (string)$dn);
$this->assertEquals($dnString3, (string) $dn);

$dn = Ldap\Dn::fromString($dnString1, Ldap\Dn::ATTR_CASEFOLD_UPPER);
$this->assertEquals($dnString2, (string)$dn);
$this->assertEquals($dnString2, (string) $dn);
$dn->setCaseFold(null);
$this->assertEquals($dnString1, (string)$dn);
$this->assertEquals($dnString1, (string) $dn);
$dn->setCaseFold(Ldap\Dn::ATTR_CASEFOLD_LOWER);
$this->assertEquals($dnString3, (string)$dn);
$this->assertEquals($dnString3, (string) $dn);

$dn = Ldap\Dn::fromString($dnString1, Ldap\Dn::ATTR_CASEFOLD_LOWER);
$this->assertEquals($dnString3, (string)$dn);
$this->assertEquals($dnString3, (string) $dn);
$dn->setCaseFold(Ldap\Dn::ATTR_CASEFOLD_UPPER);
$this->assertEquals($dnString2, (string)$dn);
$this->assertEquals($dnString2, (string) $dn);
$dn->setCaseFold(Ldap\Dn::ATTR_CASEFOLD_LOWER);
$this->assertEquals($dnString3, (string)$dn);
$this->assertEquals($dnString3, (string) $dn);
$dn->setCaseFold(Ldap\Dn::ATTR_CASEFOLD_UPPER);
$this->assertEquals($dnString2, (string)$dn);
$this->assertEquals($dnString2, (string) $dn);

Ldap\Dn::setDefaultCaseFold(Ldap\Dn::ATTR_CASEFOLD_UPPER);
$dn = Ldap\Dn::fromString($dnString1, null);
$this->assertEquals($dnString2, (string)$dn);
$this->assertEquals($dnString2, (string) $dn);

Ldap\Dn::setDefaultCaseFold(null);
$dn = Ldap\Dn::fromString($dnString1, null);
$this->assertEquals($dnString1, (string)$dn);
$this->assertEquals($dnString1, (string) $dn);

Ldap\Dn::setDefaultCaseFold(Ldap\Dn::ATTR_CASEFOLD_NONE);
}
Expand Down
4 changes: 0 additions & 4 deletions test/Dn/EscapingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Dn;

use Zend\Ldap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Dn
*/
Expand Down
4 changes: 0 additions & 4 deletions test/Dn/ExplodingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Dn;

use Zend\Ldap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Dn
*/
Expand Down
4 changes: 0 additions & 4 deletions test/Dn/ImplodingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Dn;

use Zend\Ldap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Dn
*/
Expand Down
4 changes: 0 additions & 4 deletions test/Dn/MiscTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,13 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Dn;

use Zend\Ldap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Dn
*/
Expand Down
4 changes: 0 additions & 4 deletions test/Dn/ModificationTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Dn;
Expand All @@ -14,9 +13,6 @@
use Zend\Ldap\Exception;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Dn
*/
Expand Down
6 changes: 1 addition & 5 deletions test/FilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap;
Expand All @@ -14,9 +13,6 @@
use Zend\Ldap\Filter;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
*/
class FilterTest extends \PHPUnit_Framework_TestCase
Expand Down Expand Up @@ -91,7 +87,7 @@ public function testFilterCreation()
public function testToStringImplementation()
{
$f1 = Ldap\Filter::ends('name', 'value');
$this->assertEquals($f1->toString(), (string)$f1);
$this->assertEquals($f1->toString(), (string) $f1);
}

public function testNegate()
Expand Down
4 changes: 0 additions & 4 deletions test/Ldif/SimpleDecoderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* @link http://github.com/zendframework/zf2 for the canonical source repository
* @copyright Copyright (c) 2005-2013 Zend Technologies USA Inc. (http://www.zend.com)
* @license http://framework.zend.com/license/new-bsd New BSD License
* @package Zend_Ldap
*/

namespace ZendTest\Ldap\Ldif;
Expand All @@ -14,9 +13,6 @@
use ZendTest\Ldap as TestLdap;

/**
* @category Zend
* @package Zend_Ldap
* @subpackage UnitTests
* @group Zend_Ldap
* @group Zend_Ldap_Ldif
*/
Expand Down
Loading

0 comments on commit 6691526

Please sign in to comment.