public function testFromArray() { $globals = new Globals(); $globals->fromArray(array('relativeRoot' => '../', 'foo' => 'bar')); $this->assertSame($globals->relativeRoot, '../'); $this->assertSame($globals->extra['foo'], 'bar'); }