public function _testDialNumber() { $number = '+494031703167'; $phoneId = $this->_objects['phone']->getId(); $lineId = $this->_objects['line']->getId(); $status = $this->_json->dialNumber($number, $phoneId, $lineId); $this->assertEquals('array', gettype($status)); $this->assertTrue(isset($status['success']) || array_key_exists('success', $status)); $this->assertTrue($status['success']); }