Exemplo n.º 1
0
 public function testCanConstruct()
 {
     $moduleDefinition = $this->getMockBuilder('\\Bootstrap\\Definition\\ModuleDefinition')->disableOriginalConstructor()->setMethods(array('get'))->getMock();
     $moduleDefinition->expects($this->atLeastOnce())->method('get')->will($this->returnValue(array()));
     $this->assertInstanceOf('\\Bootstrap\\BootstrapManager', new BootstrapManager($moduleDefinition));
     BootstrapManager::clear();
     $this->assertInstanceOf('\\Bootstrap\\BootstrapManager', BootstrapManager::getInstance());
 }