Browse Source

Fix build

Thanks https://stackoverflow.com/questions/12346876/php-foreach-that-returns-keys-only#12346910
rugk 10 năm trước cách đây
mục cha
commit
d367655c6d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tst/model.php

+ 1 - 1
tst/model.php

@@ -236,7 +236,7 @@ class modelTest extends PHPUnit_Framework_TestCase
             $this->assertTrue($store->exists($ids[$key]), "paste $key exists after storing it");
             $this->assertTrue($store->exists($ids[$key]), "paste $key exists after storing it");
         }
         }
         $this->_model->purge(10);
         $this->_model->purge(10);
-        foreach ($ids as $key)
+        foreach (array_keys($ids) as $key)
         {
         {
             if (in_array($key, array('x', 'y', 'z')))
             if (in_array($key, array('x', 'y', 'z')))
             {
             {