@@ -36,14 +36,14 @@ discard block |
||
36 | 36 | |
37 | 37 | public function testClear() |
38 | 38 | { |
39 | - $this->mock->expects( $this->once() )->method( 'flushdb' )->will( $this->returnValue( 'OK') ); |
|
39 | + $this->mock->expects( $this->once() )->method( 'flushdb' )->will( $this->returnValue( 'OK' ) ); |
|
40 | 40 | $this->assertTrue( $this->object->clear() ); |
41 | 41 | } |
42 | 42 | |
43 | 43 | |
44 | 44 | public function testDelete() |
45 | 45 | { |
46 | - $this->mock->expects( $this->once() )->method( 'del' )->will( $this->returnValue( 'OK') ) |
|
46 | + $this->mock->expects( $this->once() )->method( 'del' )->will( $this->returnValue( 'OK' ) ) |
|
47 | 47 | ->with( $this->equalTo( array( '1-test' ) ) ); |
48 | 48 | |
49 | 49 | $this->assertTrue( $this->object->delete( 'test' ) ); |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | public function testDeleteMultiple() |
54 | 54 | { |
55 | - $this->mock->expects( $this->once() )->method( 'del' )->will( $this->returnValue( 'OK') ) |
|
55 | + $this->mock->expects( $this->once() )->method( 'del' )->will( $this->returnValue( 'OK' ) ) |
|
56 | 56 | ->with( $this->equalTo( array( '1-test' ) ) ); |
57 | 57 | |
58 | 58 | $this->assertTrue( $this->object->deleteMultiple( array( 'test' ) ) ); |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | $this->mock->expects( $this->once() )->method( 'execute' ) |
70 | 70 | ->will( $this->returnValue( array( '1-tag:1' => array( '1-key:1', '1-key:2' ) ) ) ); |
71 | 71 | |
72 | - $this->mock->expects( $this->once() )->method( 'del' )->will( $this->returnValue( 'OK') ) |
|
72 | + $this->mock->expects( $this->once() )->method( 'del' )->will( $this->returnValue( 'OK' ) ) |
|
73 | 73 | ->with( $this->equalTo( array( '1-key:1', '1-key:2', '1-tag:tag1', '1-tag:tag2' ) ) ); |
74 | 74 | |
75 | 75 | $this->assertTrue( $this->object->deleteByTags( array( 'tag1', 'tag2' ) ) ); |
@@ -127,7 +127,7 @@ discard block |
||
127 | 127 | |
128 | 128 | $this->mock->expects( $this->exactly( 2 ) )->method( 'sadd' ); |
129 | 129 | |
130 | - $this->mock->expects( $this->once() )->method( 'execute' )->will( $this->returnValue( 'OK') ); |
|
130 | + $this->mock->expects( $this->once() )->method( 'execute' )->will( $this->returnValue( 'OK' ) ); |
|
131 | 131 | |
132 | 132 | $this->mock->expects( $this->once() )->method( 'expireat' ) |
133 | 133 | ->with( $this->equalTo( '1-t:1' ), $this->greaterThan( 0 ) ); |
@@ -146,7 +146,7 @@ discard block |
||
146 | 146 | |
147 | 147 | $this->mock->expects( $this->exactly( 2 ) )->method( 'sadd' ); |
148 | 148 | |
149 | - $this->mock->expects( $this->once() )->method( 'execute' )->will( $this->returnValue( 'OK') ); |
|
149 | + $this->mock->expects( $this->once() )->method( 'execute' )->will( $this->returnValue( 'OK' ) ); |
|
150 | 150 | |
151 | 151 | $this->mock->expects( $this->once() )->method( 'expireat' ) |
152 | 152 | ->with( $this->equalTo( '1-t:1' ), $this->greaterThan( 0 ) ); |