This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'hotfix/3562' into develop
Forward port zendframework/zendframework#3562
- Loading branch information
111 parents
7d6f60c
+
a5f3296
+
ba17210
+
bf83129
+
40926a2
+
0835021
+
26ee41a
+
a7690f0
+
4fe9653
+
be4158f
+
22dc55a
+
a1e2d7e
+
4abdf38
+
e59ea5a
+
fbff658
+
48d0341
+
401d180
+
4e95264
+
5431207
+
a7a7974
+
7c3f597
+
a50748b
+
700cf3a
+
1582c31
+
016f50c
+
9852497
+
073b126
+
bd99c5c
+
56451bd
+
8fe4cad
+
18812d8
+
89590ab
+
0f8f25b
+
c2a03a9
+
4c690cd
+
52cb4e6
+
f7ed984
+
1d190a2
+
3c5d19b
+
c3c849d
+
faa6e57
+
ad46181
+
12a401e
+
3738445
+
65aacba
+
bf5f5a3
+
c2ac9c0
+
6d7cf99
+
1841b47
+
f81171b
+
5ffaadf
+
cd6d5f2
+
a512601
+
926e71f
+
1f29b3e
+
a75171a
+
9a8e72f
+
814716e
+
88d9371
+
678232d
+
a0560e8
+
4ff045c
+
ac805a6
+
41f360c
+
1939a3c
+
730da5d
+
dd0a1b5
+
1bc1ed5
+
cea3413
+
f2b47df
+
2b8aa6a
+
42cb3fe
+
46afe3b
+
ef4289e
+
f40a98a
+
8c27e9d
+
512d6ca
+
b1452f8
+
9f6e228
+
cf96a5a
+
aa9ef86
+
04be01e
+
93487ba
+
c640cb5
+
ab2b436
+
a876e82
+
01f54c9
+
f0abecc
+
920eae1
+
db4f625
+
f51678c
+
5975f0e
+
e9d78fe
+
03de5ee
+
d7320d7
+
16ff5c5
+
f170b61
+
b506606
+
f6c7309
+
675c421
+
43220df
+
c076d41
+
e9406c0
+
bb1710e
+
8d2dae7
+
e036825
+
337996c
+
285fc46
+
277a8aa
+
be0baa3
+
9e94933
commit 5077dc6
Showing
2 changed files
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -165,6 +165,6 @@ public function rewind() | |
*/ | ||
public function count() | ||
{ | ||
return $this->count(); | ||
return $this->count; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?php | ||
/** | ||
* Zend Framework (http://framework.zend.com/) | ||
* | ||
* @link https://github.com/zendframework/zf2 for the canonical source repository | ||
* @copyright Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com) | ||
* @license http://framework.zend.com/license/new-bsd New BSD License | ||
* @package Zend_Cache | ||
*/ | ||
|
||
namespace ZendTest\Cache\Storage\Adapter; | ||
|
||
use Zend\Cache; | ||
use Zend\Cache\Storage\Adapter\Memory as MemoryStorage; | ||
use Zend\Cache\Storage\Adapter\KeyListIterator; | ||
|
||
/** | ||
* @category Zend | ||
* @package Zend_Cache | ||
* @subpackage UnitTests | ||
* @group Zend_Cache | ||
*/ | ||
class KeyListIteratorTest extends \PHPUnit_Framework_TestCase | ||
{ | ||
|
||
public function testCount() | ||
{ | ||
$keys = array('key1', 'key2', 'key3'); | ||
$storage = $this->getMock('Zend\Cache\Storage\StorageInterface'); | ||
$iterator = new KeyListIterator($storage, $keys); | ||
$this->assertEquals(3, $iterator->count()); | ||
} | ||
} |