unset( $data[0]['query']['watchlist'][$index] );
}
}
- $this->assertSame( 0, count( $data[0]['query']['watchlist'] ) );
+ $this->assertSame( [], $data[0]['query']['watchlist'] );
return $data;
}
$asycList[0](); // run the refresh callback
$asycList = [];
$this->assertEquals( 2, $wasSet, "Value calculated at later time" );
- $this->assertSame( 0, count( $asycList ), "No deferred refreshes added." );
+ $this->assertSame( [], $asycList, "No deferred refreshes added." );
$v = $cache->getWithSetCallback( $key, 300, $func, $opts );
$this->assertEquals( $value, $v, "New value stored" );
}
$session2 = null;
- $this->assertSame( 0, count( $priv->requests ) );
+ $this->assertSame( [], $priv->requests );
$this->assertArrayNotHasKey( $backend->getId(), $manager->allSessionBackends );
$this->assertArrayHasKey( $backend->getId(), $manager->allSessionIds );
}