Просмотр исходного кода

Fixed the null byte test for Zend_Db_Adapter_Pdo

Enrico Zimuel 10 лет назад
Родитель
Сommit
f6f4f7a60a
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      tests/Zend/Db/Adapter/Pdo/TestCommon.php

+ 1 - 1
tests/Zend/Db/Adapter/Pdo/TestCommon.php

@@ -98,6 +98,6 @@ abstract class Zend_Db_Adapter_Pdo_TestCommon extends Zend_Db_Adapter_TestCommon
     {
         $string = "1\0";
         $value  = $this->_db->quote($string);
-        $this->assertEquals("'1\\000'", $value);
+        $this->assertNotContains("\0", $value);
     }
 }