PHP Class Symfony\Polyfill\Tests\Php56\Php56Test

Inheritance: extends PHPUnit_Framework_TestCase
Show file Open project: symfony/polyfill

Public Methods

Method Description
provideHashEqualsFalse ( )
provideHashEqualsTrue ( )
provideLdapEscapeValues ( ) : array Provides values for the ldap_escape shim. These tests come from the official extension, with the exception of the last one. The last test accounts for leading/trailing spaces and carriage returns as outlined in RFC 4514. Those values are not actually handled by ldap_escape before PHP 7.1.
testHashEqualsFalse ( $known, $user )
testHashEqualsTrue ( $known, $user )
testLdapEscape ( $subject, $ignore, $flags, $expected )

Method Details

provideHashEqualsFalse() public method

provideHashEqualsTrue() public method

provideLdapEscapeValues() public method

Provides values for the ldap_escape shim. These tests come from the official extension, with the exception of the last one. The last test accounts for leading/trailing spaces and carriage returns as outlined in RFC 4514. Those values are not actually handled by ldap_escape before PHP 7.1.
See also: https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_escape_dn.phpt
See also: https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_escape_all.phpt
See also: https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_escape_both.phpt
See also: https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_escape_filter.phpt
See also: https://github.com/php/php-src/blob/master/ext/ldap/tests/ldap_escape_ignore.phpt
public provideLdapEscapeValues ( ) : array
return array

testHashEqualsFalse() public method

public testHashEqualsFalse ( $known, $user )

testHashEqualsTrue() public method

public testHashEqualsTrue ( $known, $user )

testLdapEscape() public method

public testLdapEscape ( $subject, $ignore, $flags, $expected )