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