Exemplo n.º 1
0
 /**
  * @test
  */
 public function can_get_option_with_interrupt()
 {
     $mock = new PAGI\Client\Impl\MockedClientImpl($this->_properties);
     $mock->onGetOption(true, '#', 1000);
     $result = $mock->getOption('blah', '#', 1000);
     $this->assertFalse($result->isTimeout());
     $this->assertEquals($result->getDigits(), '#');
 }