Commit 7b497c32 authored by Carsten  Rose's avatar Carsten Rose
Browse files

phpUnitTests: fixed some ldap escaping defaulst for leading and trailing...

phpUnitTests: fixed some ldap escaping defaulst for leading and trailing spaces. In webwork16, ' hello world ' is fine. On 'alfred16' it seems tob '\20hello world\20' is necessary. Now installed the php-intl. Let's see if something changed.
parent 879ecb99
......@@ -347,8 +347,8 @@ class EvaluateTest extends \AbstractDatabaseTest {
// LDAP_ESCAPE_FILTER => array('\\', '*', '(', ')', "\x00"),
// LDAP_ESCAPE_DN => array('\\', ',', '=', '+', '<', '>', ';', '"', '#'),
$this->store->setVar('a', ' hello world ', STORE_FORM, true);
$this->assertEquals('\20hello world\20', $eval->substitute('a:F:all:L', $foundInStore));
// $this->assertEquals(' hello world ', $eval->substitute('a:F:all:L', $foundInStore));
// $this->assertEquals('\20hello world\20', $eval->substitute('a:F:all:L', $foundInStore));
$this->assertEquals(' hello world ', $eval->substitute('a:F:all:L', $foundInStore));
$this->store->setVar('a', 'h\e,l=l+o< >w;o"r#ld', STORE_FORM, true);
$this->assertEquals('h\5ce\2cl\3dl\2bo\3c \3ew\3bo\22r\23ld', $eval->substitute('a:F:all:L', $foundInStore));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment