/**
  * @param string $bundle
  * @param array|null $arguments
  *
  * @return \Spryker\Shared\Kernel\BundleProxy
  */
 public function __call($bundle, array $arguments = null)
 {
     if ($this->bundleProxy === null) {
         $this->bundleProxy = $this->getBundleProxy();
     }
     return $this->bundleProxy->setBundle($bundle);
 }
Beispiel #2
0
 /**
  * @return void
  */
 public function testSetBundleShouldReturnBundleProxy()
 {
     $bundleProxy = new BundleProxy();
     $this->assertInstanceOf('Spryker\\Shared\\Kernel\\BundleProxy', $bundleProxy->setBundle('Foo'));
 }