47 $poolCounter = $this->getMockBuilder(
'PoolCounterAbstractMock' )
50 ->setMethods( [
'idontexist' ] )
51 ->disableOriginalConstructor()
52 ->getMockForAbstractClass();
54 $hashKeyIntoSlots =
new ReflectionMethod( $poolCounter,
'hashKeyIntoSlots' );
55 $hashKeyIntoSlots->setAccessible(
true );
57 $keysWithTwoSlots = $keysWithFiveSlots = [];
58 foreach ( range( 1, 100 )
as $i ) {
59 $keysWithTwoSlots[] = $hashKeyIntoSlots->invoke( $poolCounter,
'key ' .
$i, 2 );
60 $keysWithFiveSlots[] = $hashKeyIntoSlots->invoke( $poolCounter,
'key ' .
$i, 5 );
68 $hashKeyIntoSlots->invoke( $poolCounter,
'asdfgh', 1000 ),
69 $hashKeyIntoSlots->invoke( $poolCounter,
'asdfgh', 1000 )