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

Commit

Permalink
Merge remote-tracking branch 'zf2/develop' into zend-validator-bitwise
Browse files Browse the repository at this point in the history
  • Loading branch information
Show file tree
Hide file tree
Showing 29 changed files with 17 additions and 133 deletions.
4 changes: 0 additions & 4 deletions test/AbstractOnlineTestCase.php
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
4 changes: 0 additions & 4 deletions test/Ldif/SimpleEncoderTest.php
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

0 comments on commit 53f3070

Please sign in to comment.