/** * @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); }
/** * @return void */ public function testSetBundleShouldReturnBundleProxy() { $bundleProxy = new BundleProxy(); $this->assertInstanceOf('Spryker\\Shared\\Kernel\\BundleProxy', $bundleProxy->setBundle('Foo')); }