Преглед изворни кода

Merge pull request #638 from ezimuel/fix/test-db-null-byte

Fixed the null byte test for Zend_Db_Adapter_Pdo
Matthew Weier O'Phinney пре 10 година
родитељ
комит
89e40144ab
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);
     }
 }