createBundle() public method

Create a Bundle instance.
public createBundle ( string | array $options = null ) : Bundle
$options string | array An array of options or a bundle name as string
return Bundle
Ejemplo n.º 1
0
 public function testCreateBundleAcceptsStringArgument()
 {
     $factory = new Factory(array('name' => 'foo'));
     $bundle = $factory->createBundle('bar');
     $this->assertEquals('bar', $bundle->getName());
 }