Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 27... Línea 27...
27
 * @package    core
27
 * @package    core
28
 * @category   test
28
 * @category   test
29
 * @copyright  Damyon Wiese, Iñaki Arenaza 2014
29
 * @copyright  Damyon Wiese, Iñaki Arenaza 2014
30
 * @license    http://www.gnu.org/copyleft/gpl.html GNU Public License
30
 * @license    http://www.gnu.org/copyleft/gpl.html GNU Public License
31
 */
31
 */
32
class ldaplib_test extends \advanced_testcase {
32
final class ldaplib_test extends \advanced_testcase {
Línea 33... Línea 33...
33
 
33
 
34
    public function test_ldap_addslashes(): void {
34
    public function test_ldap_addslashes(): void {
35
        // See http://tools.ietf.org/html/rfc4514#section-5.2 if you want
35
        // See http://tools.ietf.org/html/rfc4514#section-5.2 if you want
Línea 182... Línea 182...
182
    /**
182
    /**
183
     * Data provider for the test_ldap_normalise_objectclass testcase.
183
     * Data provider for the test_ldap_normalise_objectclass testcase.
184
     *
184
     *
185
     * @return array of testcases.
185
     * @return array of testcases.
186
     */
186
     */
187
    public function ldap_normalise_objectclass_provider() {
187
    public static function ldap_normalise_objectclass_provider(): array {
188
        return array(
188
        return array(
189
            'Empty value' => array(
189
            'Empty value' => array(
190
                array(null),
190
                array(null),
191
                '(objectClass=*)',
191
                '(objectClass=*)',
192
            ),
192
            ),