Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > e7f98cc52094672001c3e6a04c417ebf > files > 9

php-pear-DB_ldap2-0.5.0-2mdv2010.0.noarch.rpm

--TEST--
DB_ldap2::fetch test
--SKIPIF--
<?php chdir(dirname(__FILE__)); include("skipif.inc"); ?>
--FILE--
<?php
include("mktable.inc");
//include("../fetchrow.inc");
include("../fetchmodes.inc");
?>
--EXPECT--
testing fetchmodes: fetchrow default default
array(3) {
  ["dn"]=>
  string(17) "dc=example,dc=com"
  ["objectclass"]=>
  array(2) {
    [0]=>
    string(3) "top"
    [1]=>
    string(6) "domain"
  }
  ["dc"]=>
  string(4) "test"
}
testing fetchmodes: fetchinto default default
array(3) {
  ["dn"]=>
  string(17) "dc=example,dc=com"
  ["objectclass"]=>
  array(2) {
    [0]=>
    string(3) "top"
    [1]=>
    string(6) "domain"
  }
  ["dc"]=>
  string(4) "test"
}
testing fetchmodes: fetchrow ordered default
array(3) {
  [0]=>
  string(3) "top"
  [1]=>
  string(6) "domain"
  [2]=>
  string(4) "test"
}
testing fetchmodes: fetchrow assoc default
array(3) {
  ["dn"]=>
  string(17) "dc=example,dc=com"
  ["objectclass"]=>
  array(2) {
    [0]=>
    string(3) "top"
    [1]=>
    string(6) "domain"
  }
  ["dc"]=>
  string(4) "test"
}
testing fetchmodes: fetchrow ordered default with assoc specified
array(3) {
  ["dn"]=>
  string(17) "dc=example,dc=com"
  ["objectclass"]=>
  array(2) {
    [0]=>
    string(3) "top"
    [1]=>
    string(6) "domain"
  }
  ["dc"]=>
  string(4) "test"
}
testing fetchmodes: fetchrow assoc default with ordered specified
array(3) {
  [0]=>
  string(3) "top"
  [1]=>
  string(6) "domain"
  [2]=>
  string(4) "test"
}
testing fetchmodes: fetchinto ordered default
array(3) {
  [0]=>
  string(3) "top"
  [1]=>
  string(6) "domain"
  [2]=>
  string(4) "test"
}
testing fetchmodes: fetchinto assoc default
array(3) {
  ["dn"]=>
  string(17) "dc=example,dc=com"
  ["objectclass"]=>
  array(2) {
    [0]=>
    string(3) "top"
    [1]=>
    string(6) "domain"
  }
  ["dc"]=>
  string(4) "test"
}
testing fetchmodes: fetchinto ordered default with assoc specified
array(3) {
  ["dn"]=>
  string(17) "dc=example,dc=com"
  ["objectclass"]=>
  array(2) {
    [0]=>
    string(3) "top"
    [1]=>
    string(6) "domain"
  }
  ["dc"]=>
  string(4) "test"
}
testing fetchmodes: fetchinto assoc default with ordered specified
array(3) {
  [0]=>
  string(3) "top"
  [1]=>
  string(6) "domain"
  [2]=>
  string(4) "test"
}