/** * @covers Desk\Common\Decorator::__call * @expectedException Desk\Exception\BadMethodCallException * @expectedExceptionMessage method Desk\Common\Decorator::foo() (not defined on decorator or decorated stdClass) */ public function testCallInvalid() { $component = new \stdClass(); $decorator = new Decorator($component); $result = $decorator->foo('bar'); $this->assertSame('baz', $result); }
/** * Overridden to provide type-checking of the decorated component * * @param \Guzzle\Service\Command\LocationVisitor\Request\RequestVisitorInterface $visitor */ public function __construct(RequestVisitorInterface $visitor) { parent::__construct($visitor); }