public function testSetsGetsProperties()
 {
     $instance = new Extension(static::$name, static::$file, static::$type, static::$client, static::$group);
     self::assertEquals('plg_system_test', $instance->getName());
     self::assertEquals('some_file.zip', $instance->getFile()->getName());
     self::assertEquals('plugin', $instance->getType());
     self::assertEquals(null, $instance->getClient());
     self::assertEquals('system', $instance->getGroup());
 }
Example #2
0
 /**
  * @param Extension $extension
  * @return bool
  */
 public function has(Extension $extension)
 {
     return isset($this->extensions[$extension->getName()]);
 }