@@ -109,6 +109,10 @@ public function testCasChanged() {
109
109
$ this ->assertEquals ('bar1 ' , $ this ->instance ->get ('foo ' ));
110
110
}
111
111
112
+ public function testCasNotSet () {
113
+ $ this ->assertFalse ($ this ->instance ->cas ('foo ' , 'bar ' , 'asd ' ));
114
+ }
115
+
112
116
public function testCadNotChanged () {
113
117
$ this ->instance ->set ('foo ' , 'bar ' );
114
118
$ this ->assertTrue ($ this ->instance ->cad ('foo ' , 'bar ' ));
@@ -121,6 +125,25 @@ public function testCadChanged() {
121
125
$ this ->assertTrue ($ this ->instance ->hasKey ('foo ' ));
122
126
}
123
127
128
+ public function testCadNotSet () {
129
+ $ this ->assertFalse ($ this ->instance ->cad ('foo ' , 'bar ' ));
130
+ }
131
+
132
+ public function testNcadNotChanged () {
133
+ $ this ->instance ->set ('foo ' , 'bar ' );
134
+ $ this ->assertFalse ($ this ->instance ->ncad ('foo ' , 'bar ' ));
135
+ $ this ->assertTrue ($ this ->instance ->hasKey ('foo ' ));
136
+ }
137
+
138
+ public function testNcadChanged () {
139
+ $ this ->instance ->set ('foo ' , 'bar1 ' );
140
+ $ this ->assertTrue ($ this ->instance ->ncad ('foo ' , 'bar ' ));
141
+ $ this ->assertFalse ($ this ->instance ->hasKey ('foo ' ));
142
+ }
143
+
144
+ public function testNcadNotSet () {
145
+ $ this ->assertFalse ($ this ->instance ->ncad ('foo ' , 'bar ' ));
146
+ }
124
147
125
148
protected function tearDown (): void {
126
149
if ($ this ->instance ) {
0 commit comments