/** * @return void */ public function testCallShouldThrowExceptionIfNoLocatorCanBeMatchedToCalledMethod() { $this->expectException('\\LogicException'); $bundleProxy = new BundleProxy(); $bundleProxy->addLocator(new LocatorWithMatcher('Foo')); $bundleProxy->notMatchingTest(); }
/** * @return \Spryker\Shared\Kernel\BundleProxy */ protected function getBundleProxy() { $bundleProxy = new BundleProxy(); $bundleProxy->addLocator(new ClientLocator()); return $bundleProxy; }