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

Commit

Permalink
Merge branch 'hotfix/7476'
Browse files Browse the repository at this point in the history
  • Loading branch information
weierophinney committed May 4, 2015
2 parents aeee471 + 47347d6 commit 61e9069
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/BindTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ public function testResourceIsAlwaysReturned()
{
$ldap = new Ldap\Ldap($this->options);
$this->assertNotNull($ldap->getResource());
$this->assertTrue(is_resource($ldap->getResource()));
$this->assertInternalType('resource', $ldap->getResource());
$this->assertEquals(TESTS_ZEND_LDAP_USERNAME, $ldap->getBoundUser());
}

Expand Down
2 changes: 1 addition & 1 deletion test/CanonTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public function testMismatchDomainBind()
$ldap->bind('BOGUS\\doesntmatter', 'doesntmatter');
$this->fail('Expected exception not thrown');
} catch (Exception\LdapException $zle) {
$this->assertTrue($zle->getCode() == Exception\LdapException::LDAP_X_DOMAIN_MISMATCH);
$this->assertEquals(Exception\LdapException::LDAP_X_DOMAIN_MISMATCH, $zle->getCode());
}
}

Expand Down
2 changes: 1 addition & 1 deletion test/Dn/ExplodingTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ public static function explodeDnOperationProvider()
public function testExplodeDnOperation($input, $expected)
{
$ret = Ldap\Dn::checkDn($input);
$this->assertTrue($ret === $expected);
$this->assertEquals($expected, $ret);
}

public function testExplodeDnCaseFold()
Expand Down

0 comments on commit 61e9069

Please sign in to comment.