parent::setUp();
// type defined through parameter
- if ( $this->getCliArg( 'use-bagostuff=' ) ) {
- $name = $this->getCliArg( 'use-bagostuff=' );
+ if ( $this->getCliArg( 'use-bagostuff' ) ) {
+ $name = $this->getCliArg( 'use-bagostuff' );
$this->cache = ObjectCache::newFromId( $name );
} else {
$this->cache->delete( wfMemcKey( 'test' ) );
}
- protected function tearDown() {
- }
-
public function testMerge() {
$key = wfMemcKey( 'test' );
* - pcntl_fork is supported by the system
* - cache type will correctly support calls over forks
*/
- $fork = (bool)$this->getCliArg( 'use-bagostuff=' );
+ $fork = (bool)$this->getCliArg( 'use-bagostuff' );
$fork &= function_exists( 'pcntl_fork' );
$fork &= !$this->cache instanceof HashBagOStuff;
$fork &= !$this->cache instanceof EmptyBagOStuff;
$this->cache->add( $key1, $value1 );
$this->cache->add( $key2, $value2 );
- $this->assertEquals( $this->cache->getMulti( array( $key1, $key2 ) ), array( $key1 => $value1, $key2 => $value2 ) );
+ $this->assertEquals(
+ $this->cache->getMulti( array( $key1, $key2 ) ),
+ array( $key1 => $value1, $key2 => $value2 )
+ );
// cleanup
$this->cache->delete( $key1 );