@@ -342,7 +342,7 @@ public function test_16_hash_select() {
342342 self ::$ tarantool ->select ("test_hash " , null , null , null , null , TARANTOOL ::ITERATOR_EQ );
343343 $ this ->assertFalse (True );
344344 } catch (TarantoolClientError $ e ) {
345- $ this ->assertContains ( ' Invalid key part ' , $ e ->getMessage ());
345+ $ this ->assertRegExp ( ' ( Invalid key part|via a partial key) ' , $ e ->getMessage ());
346346 }
347347 }
348348
@@ -354,7 +354,7 @@ public function test_17_01_it_clienterror($spc, $itype, $xcmsg) {
354354 self ::$ tarantool ->select ($ spc , null , null , null , null , $ itype );
355355 $ this ->assertFalse (True );
356356 } catch (TarantoolClientError $ e ) {
357- $ this ->assertContains ($ xcmsg , $ e ->getMessage ());
357+ $ this ->assertRegExp ($ xcmsg , $ e ->getMessage ());
358358 }
359359 }
360360
@@ -384,40 +384,40 @@ public function test_17_03_it_good($spc, $itype) {
384384
385385 public static function provideIteratorClientError () {
386386 return [
387- ['test_hash ' , 'EQ ' ,'Invalid key part ' ],
388- ['test_hash ' , 'REQ ' ,'Invalid key part ' ],
389- ['test_hash ' , 'LT ' ,'Invalid key part ' ],
390- ['test_hash ' , 'LE ' ,'Invalid key part ' ],
391- ['test_hash ' , 'GE ' ,'Invalid key part ' ],
392- ['test_hash ' , 'BITSET_ALL_SET ' ,'Invalid key part ' ],
393- ['test_hash ' , 'BITSET_ANY_SET ' ,'Invalid key part ' ],
394- ['test_hash ' , 'BITSET_ALL_NOT_SET ' ,'Invalid key part ' ],
395- ['test_hash ' , 'BITS_ALL_SET ' ,'Invalid key part ' ],
396- ['test_hash ' , 'BITS_ANY_SET ' ,'Invalid key part ' ],
397- ['test_hash ' , 'BITS_ALL_NOT_SET ' ,'Invalid key part ' ],
398- ['test_hash ' , 'OVERLAPS ' ,'Invalid key part ' ],
399- ['test_hash ' , 'NEIGHBOR ' ,'Invalid key part ' ],
400- ['test_hash ' , 'eq ' ,'Invalid key part ' ],
401- ['test_hash ' , 'req ' ,'Invalid key part ' ],
402- ['test_hash ' , 'lt ' ,'Invalid key part ' ],
403- ['test_hash ' , 'le ' ,'Invalid key part ' ],
404- ['test_hash ' , 'ge ' ,'Invalid key part ' ],
405- ['test_hash ' , 'bitset_all_set ' ,'Invalid key part ' ],
406- ['test_hash ' , 'bitset_any_set ' ,'Invalid key part ' ],
407- ['test_hash ' , 'bitset_all_not_set ' ,'Invalid key part ' ],
408- ['test_hash ' , 'bits_all_set ' ,'Invalid key part ' ],
409- ['test_hash ' , 'bits_any_set ' ,'Invalid key part ' ],
410- ['test_hash ' , 'bits_all_not_set ' ,'Invalid key part ' ],
411- ['test_hash ' , 'overlaps ' ,'Invalid key part ' ],
412- ['test_hash ' , 'neighbor ' ,'Invalid key part ' ],
413- ['test ' , 'bitset_all_set ' ,'does not support requested iterator type ' ],
414- ['test ' , 'bitset_any_set ' ,'does not support requested iterator type ' ],
415- ['test ' , 'bitset_all_not_set ' ,'does not support requested iterator type ' ],
416- ['test ' , 'bits_all_set ' ,'does not support requested iterator type ' ],
417- ['test ' , 'bits_any_set ' ,'does not support requested iterator type ' ],
418- ['test ' , 'bits_all_not_set ' ,'does not support requested iterator type ' ],
419- ['test ' , 'overlaps ' ,'does not support requested iterator type ' ],
420- ['test ' , 'neighbor ' ,'does not support requested iterator type ' ],
387+ ['test_hash ' , 'EQ ' ,'( Invalid key part|via a partial key) ' ],
388+ ['test_hash ' , 'REQ ' ,'( Invalid key part|via a partial key) ' ],
389+ ['test_hash ' , 'LT ' ,'( Invalid key part|via a partial key) ' ],
390+ ['test_hash ' , 'LE ' ,'( Invalid key part|via a partial key) ' ],
391+ ['test_hash ' , 'GE ' ,'( Invalid key part|via a partial key) ' ],
392+ ['test_hash ' , 'BITSET_ALL_SET ' ,'( Invalid key part|via a partial key) ' ],
393+ ['test_hash ' , 'BITSET_ANY_SET ' ,'( Invalid key part|via a partial key) ' ],
394+ ['test_hash ' , 'BITSET_ALL_NOT_SET ' ,'( Invalid key part|via a partial key) ' ],
395+ ['test_hash ' , 'BITS_ALL_SET ' ,'( Invalid key part|via a partial key) ' ],
396+ ['test_hash ' , 'BITS_ANY_SET ' ,'( Invalid key part|via a partial key) ' ],
397+ ['test_hash ' , 'BITS_ALL_NOT_SET ' ,'( Invalid key part|via a partial key) ' ],
398+ ['test_hash ' , 'OVERLAPS ' ,'( Invalid key part|via a partial key) ' ],
399+ ['test_hash ' , 'NEIGHBOR ' ,'( Invalid key part|via a partial key) ' ],
400+ ['test_hash ' , 'eq ' ,'( Invalid key part|via a partial key) ' ],
401+ ['test_hash ' , 'req ' ,'( Invalid key part|via a partial key) ' ],
402+ ['test_hash ' , 'lt ' ,'( Invalid key part|via a partial key) ' ],
403+ ['test_hash ' , 'le ' ,'( Invalid key part|via a partial key) ' ],
404+ ['test_hash ' , 'ge ' ,'( Invalid key part|via a partial key) ' ],
405+ ['test_hash ' , 'bitset_all_set ' ,'( Invalid key part|via a partial key) ' ],
406+ ['test_hash ' , 'bitset_any_set ' ,'( Invalid key part|via a partial key) ' ],
407+ ['test_hash ' , 'bitset_all_not_set ' ,'( Invalid key part|via a partial key) ' ],
408+ ['test_hash ' , 'bits_all_set ' ,'( Invalid key part|via a partial key) ' ],
409+ ['test_hash ' , 'bits_any_set ' ,'( Invalid key part|via a partial key) ' ],
410+ ['test_hash ' , 'bits_all_not_set ' ,'( Invalid key part|via a partial key) ' ],
411+ ['test_hash ' , 'overlaps ' ,'( Invalid key part|via a partial key) ' ],
412+ ['test_hash ' , 'neighbor ' ,'( Invalid key part|via a partial key) ' ],
413+ ['test ' , 'bitset_all_set ' ,'( does not support requested iterator type) ' ],
414+ ['test ' , 'bitset_any_set ' ,'( does not support requested iterator type) ' ],
415+ ['test ' , 'bitset_all_not_set ' ,'( does not support requested iterator type) ' ],
416+ ['test ' , 'bits_all_set ' ,'( does not support requested iterator type) ' ],
417+ ['test ' , 'bits_any_set ' ,'( does not support requested iterator type) ' ],
418+ ['test ' , 'bits_all_not_set ' ,'( does not support requested iterator type) ' ],
419+ ['test ' , 'overlaps ' ,'( does not support requested iterator type) ' ],
420+ ['test ' , 'neighbor ' ,'( does not support requested iterator type) ' ],
421421 ];
422422 }
423423
0 commit comments