public static isRegistered ( string $index ) : boolean | ||
$index | string | Index |
return | boolean |
public static function isRegistered($index)
{
if (self::$registry === null) {
return false;
}
return self::$registry->offsetExists($index);
}
/** * Test * * @return void */ public function testOffsetExists() { $this->object->set('key', 'value'); $this->assertTrue($this->object->isRegistered('key')); }