Ejemplo n.º 1
0
 public function testSetLessVariables()
 {
     $moduleDefinition = $this->getMockBuilder('\\Bootstrap\\Definition\\ModuleDefinition')->disableOriginalConstructor()->setMethods(array('get'))->getMock();
     $moduleDefinition->expects($this->atLeastOnce())->method('get')->will($this->returnValue(array()));
     $instance = new BootstrapManager($moduleDefinition);
     $instance->setLessVariables(array('foo' => 'bar'));
     $instance->setLessVariable('ichi', 'ni');
     $this->assertArrayHasKey('foo', $this->getGlobalResourceModuleBootstrapVariables());
     $this->assertArrayHasKey('ichi', $this->getGlobalResourceModuleBootstrapVariables());
 }