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