public function setUp() { $apiKey = 'abc123'; $this->client = new \Box\View\Client($apiKey); $this->requestMock = m::mock('\\Box\\View\\Request'); $this->client->setRequestHandler($this->requestMock); }
public function testSetRequestHandler() { $type = '\\Box\\View\\RequestFoo'; $requestMock = m::mock($type); $this->client->setRequestHandler($requestMock); $handler = $this->client->getRequestHandler(); $this->assertInstanceOf($type, $handler); }