* @group headless
*/
class CRM_Extension_InfoTest extends CiviUnitTestCase {
+
public function setUp() {
parent::setUp();
$this->file = NULL;
$this->assertEquals('test.foo', $info->key);
$this->assertEquals('foo', $info->file);
$this->assertEquals('zamboni', $info->typeInfo['extra']);
- $this->assertEquals(array(), $info->requires);
+ $this->assertEquals([], $info->requires);
}
public function testGood_string_extras() {
$this->assertEquals('testbar', $info->file);
$this->assertEquals('Civi\\', $info->classloader[0]['prefix']);
$this->assertEquals('Civi', $info->classloader[0]['path']);
- $this->assertEquals(array('org.civicrm.a', 'org.civicrm.b'), $info->requires);
+ $this->assertEquals(['org.civicrm.a', 'org.civicrm.b'], $info->requires);
}
public function testBad_string() {