@@ -92,7 +92,6 @@ function testGoodCas($c) {
92
92
$ res = $ c ->upsert ($ key , ['name ' => 'bob ' ]);
93
93
$ this ->assertNotNull ($ res ->cas ());
94
94
$ cas1 = $ res ->cas ();
95
- var_dump ($ res ->cas ());
96
95
97
96
$ options = new ReplaceOptions ();
98
97
$ options ->cas ($ cas1 );
@@ -274,7 +273,7 @@ function testCas($c) {
274
273
$ this ->wrapException (function () use ($ c , $ key , $ old_cas ) {
275
274
$ options = (new \Couchbase \ReplaceOptions ())->cas ($ old_cas );
276
275
$ c ->replace ($ key , 'ferret ' , $ options );
277
- }, '\Couchbase\CasMismatchException ' , COUCHBASE_KEYALREADYEXISTS );
276
+ }, '\Couchbase\CasMismatchException ' , COUCHBASE_ERR_CAS_MISMATCH );
278
277
}
279
278
280
279
/**
@@ -527,7 +526,7 @@ function testMutateInFulldoc($c) {
527
526
new \Couchbase \MutateUpsertSpec ('created_at ' , time (), true , true ),
528
527
new \Couchbase \MutateReplaceSpec ('' , ["duplicate " => "yes " ])
529
528
], $ options );
530
- }, '\Couchbase\KeyExistsException ' );
529
+ }, '\Couchbase\CasMismatchException ' );
531
530
532
531
$ options = (new \Couchbase \MutateInOptions ())->storeSemantics (\Couchbase \StoreSemantics::REPLACE );
533
532
$ result = $ c ->mutateIn ($ key , [
@@ -583,7 +582,7 @@ function testMutateIn($c) {
583
582
$ result = $ c ->mutateIn ($ key , [
584
583
new \Couchbase \MutateUpsertSpec ('newDict ' , 'withWrongCAS ' ),
585
584
], $ options );
586
- }, '\Couchbase\KeyExistsException ' );
585
+ }, '\Couchbase\CasMismatchException ' );
587
586
588
587
# once again with correct CAS
589
588
$ options = (new \Couchbase \MutateInOptions ())->cas ($ cas );
0 commit comments