How to use __call method of integer class

Best Atoum code snippet using integer.__call

MantisConnect.php

Source:MantisConnect.php Github

copy

Full Screen

...97 * @param 98 * @return string99 */100 public function mc_version() {101 return $this->__call('mc_version', array(),102 array(103 'uri' => 'http://futureware.biz/mantisconnect',104 'soapaction' => ''105 )106 );107 }108 /**109 * Get the enumeration for statuses. 110 *111 * @param string $username112 * @param string $password113 * @return ObjectRefArray114 */115 public function mc_enum_status($username, $password) {116 return $this->__call('mc_enum_status', array(117 new SoapParam($username, 'username'),118 new SoapParam($password, 'password')119 ),120 array(121 'uri' => 'http://futureware.biz/mantisconnect',122 'soapaction' => ''123 )124 );125 }126 /**127 * Get the enumeration for priorities. 128 *129 * @param string $username130 * @param string $password131 * @return ObjectRefArray132 */133 public function mc_enum_priorities($username, $password) {134 return $this->__call('mc_enum_priorities', array(135 new SoapParam($username, 'username'),136 new SoapParam($password, 'password')137 ),138 array(139 'uri' => 'http://futureware.biz/mantisconnect',140 'soapaction' => ''141 )142 );143 }144 /**145 * Get the enumeration for severities. 146 *147 * @param string $username148 * @param string $password149 * @return ObjectRefArray150 */151 public function mc_enum_severities($username, $password) {152 return $this->__call('mc_enum_severities', array(153 new SoapParam($username, 'username'),154 new SoapParam($password, 'password')155 ),156 array(157 'uri' => 'http://futureware.biz/mantisconnect',158 'soapaction' => ''159 )160 );161 }162 /**163 * Get the enumeration for reproducibilities. 164 *165 * @param string $username166 * @param string $password167 * @return ObjectRefArray168 */169 public function mc_enum_reproducibilities($username, $password) {170 return $this->__call('mc_enum_reproducibilities', array(171 new SoapParam($username, 'username'),172 new SoapParam($password, 'password')173 ),174 array(175 'uri' => 'http://futureware.biz/mantisconnect',176 'soapaction' => ''177 )178 );179 }180 /**181 * Get the enumeration for projections. 182 *183 * @param string $username184 * @param string $password185 * @return ObjectRefArray186 */187 public function mc_enum_projections($username, $password) {188 return $this->__call('mc_enum_projections', array(189 new SoapParam($username, 'username'),190 new SoapParam($password, 'password')191 ),192 array(193 'uri' => 'http://futureware.biz/mantisconnect',194 'soapaction' => ''195 )196 );197 }198 /**199 * Get the enumeration for ETAs. 200 *201 * @param string $username202 * @param string $password203 * @return ObjectRefArray204 */205 public function mc_enum_etas($username, $password) {206 return $this->__call('mc_enum_etas', array(207 new SoapParam($username, 'username'),208 new SoapParam($password, 'password')209 ),210 array(211 'uri' => 'http://futureware.biz/mantisconnect',212 'soapaction' => ''213 )214 );215 }216 /**217 * Get the enumeration for resolutions. 218 *219 * @param string $username220 * @param string $password221 * @return ObjectRefArray222 */223 public function mc_enum_resolutions($username, $password) {224 return $this->__call('mc_enum_resolutions', array(225 new SoapParam($username, 'username'),226 new SoapParam($password, 'password')227 ),228 array(229 'uri' => 'http://futureware.biz/mantisconnect',230 'soapaction' => ''231 )232 );233 }234 /**235 * Get the enumeration for access levels. 236 *237 * @param string $username238 * @param string $password239 * @return ObjectRefArray240 */241 public function mc_enum_access_levels($username, $password) {242 return $this->__call('mc_enum_access_levels', array(243 new SoapParam($username, 'username'),244 new SoapParam($password, 'password')245 ),246 array(247 'uri' => 'http://futureware.biz/mantisconnect',248 'soapaction' => ''249 )250 );251 }252 /**253 * Get the enumeration for project statuses. 254 *255 * @param string $username256 * @param string $password257 * @return ObjectRefArray258 */259 public function mc_enum_project_status($username, $password) {260 return $this->__call('mc_enum_project_status', array(261 new SoapParam($username, 'username'),262 new SoapParam($password, 'password')263 ),264 array(265 'uri' => 'http://futureware.biz/mantisconnect',266 'soapaction' => ''267 )268 );269 }270 /**271 * Get the enumeration for project view states. 272 *273 * @param string $username274 * @param string $password275 * @return ObjectRefArray276 */277 public function mc_enum_project_view_states($username, $password) {278 return $this->__call('mc_enum_project_view_states', array(279 new SoapParam($username, 'username'),280 new SoapParam($password, 'password')281 ),282 array(283 'uri' => 'http://futureware.biz/mantisconnect',284 'soapaction' => ''285 )286 );287 }288 /**289 * Get the enumeration for view states. 290 *291 * @param string $username292 * @param string $password293 * @return ObjectRefArray294 */295 public function mc_enum_view_states($username, $password) {296 return $this->__call('mc_enum_view_states', array(297 new SoapParam($username, 'username'),298 new SoapParam($password, 'password')299 ),300 array(301 'uri' => 'http://futureware.biz/mantisconnect',302 'soapaction' => ''303 )304 );305 }306 /**307 * Get the enumeration for custom field types. 308 *309 * @param string $username310 * @param string $password311 * @return ObjectRefArray312 */313 public function mc_enum_custom_field_types($username, $password) {314 return $this->__call('mc_enum_custom_field_types', array(315 new SoapParam($username, 'username'),316 new SoapParam($password, 'password')317 ),318 array(319 'uri' => 'http://futureware.biz/mantisconnect',320 'soapaction' => ''321 )322 );323 }324 /**325 * Get the enumeration for the specified enumeration type. 326 *327 * @param string $username328 * @param string $password329 * @param string $enumeration330 * @return string331 */332 public function mc_enum_get($username, $password, $enumeration) {333 return $this->__call('mc_enum_get', array(334 new SoapParam($username, 'username'),335 new SoapParam($password, 'password'),336 new SoapParam($enumeration, 'enumeration')337 ),338 array(339 'uri' => 'http://futureware.biz/mantisconnect',340 'soapaction' => ''341 )342 );343 }344 /**345 * Check there exists an issue with the specified id. 346 *347 * @param string $username348 * @param string $password349 * @param integer $issue_id350 * @return boolean351 */352 public function mc_issue_exists($username, $password, integer $issue_id) {353 return $this->__call('mc_issue_exists', array(354 new SoapParam($username, 'username'),355 new SoapParam($password, 'password'),356 new SoapParam($issue_id, 'issue_id')357 ),358 array(359 'uri' => 'http://futureware.biz/mantisconnect',360 'soapaction' => ''361 )362 );363 }364 /**365 * Get the issue with the specified id. 366 *367 * @param string $username368 * @param string $password369 * @param integer $issue_id370 * @return IssueData371 */372 public function mc_issue_get($username, $password, $issue_id) {373 return $this->__call('mc_issue_get', array(374 new SoapParam($username, 'username'),375 new SoapParam($password, 'password'),376 new SoapParam($issue_id, 'issue_id')377 ),378 array(379 'uri' => 'http://futureware.biz/mantisconnect',380 'soapaction' => ''381 )382 );383 }384 /**385 * Get the latest submitted issue in the specified project. 386 *387 * @param string $username388 * @param string $password389 * @param integer $project_id390 * @return integer391 */392 public function mc_issue_get_biggest_id($username, $password, integer $project_id) {393 return $this->__call('mc_issue_get_biggest_id', array(394 new SoapParam($username, 'username'),395 new SoapParam($password, 'password'),396 new SoapParam($project_id, 'project_id')397 ),398 array(399 'uri' => 'http://futureware.biz/mantisconnect',400 'soapaction' => ''401 )402 );403 }404 /**405 * Get the id of the issue with the specified summary. 406 *407 * @param string $username408 * @param string $password409 * @param string $summary410 * @return integer411 */412 public function mc_issue_get_id_from_summary($username, $password, $summary) {413 return $this->__call('mc_issue_get_id_from_summary', array(414 new SoapParam($username, 'username'),415 new SoapParam($password, 'password'),416 new SoapParam($summary, 'summary')417 ),418 array(419 'uri' => 'http://futureware.biz/mantisconnect',420 'soapaction' => ''421 )422 );423 }424 /**425 * Submit the specified issue details. 426 *427 * @param string $username428 * @param string $password429 * @param IssueData $issue430 * @return integer431 */432 public function mc_issue_add($username, $password, IssueData $issue) {433 return $this->__call('mc_issue_add', array(434 new SoapParam($username, 'username'),435 new SoapParam($password, 'password'),436 new SoapParam($issue, 'issue')437 ),438 array(439 'uri' => 'http://futureware.biz/mantisconnect',440 'soapaction' => ''441 )442 );443 }444 /**445 * Update Issue method. 446 *447 * @param string $username448 * @param string $password449 * @param integer $issueId450 * @param IssueData $issue451 * @return boolean452 */453 public function mc_issue_update($username, $password, integer $issueId, IssueData $issue) {454 return $this->__call('mc_issue_update', array(455 new SoapParam($username, 'username'),456 new SoapParam($password, 'password'),457 new SoapParam($issueId, 'issueId'),458 new SoapParam($issue, 'issue')459 ),460 array(461 'uri' => 'http://futureware.biz/mantisconnect',462 'soapaction' => ''463 )464 );465 }466 /**467 * Sets the tags for a specified issue. 468 *469 * @param string $username470 * @param string $password471 * @param integer $issue_id472 * @param TagDataArray $tags473 * @return boolean474 */475 public function mc_issue_set_tags($username, $password, integer $issue_id, TagDataArray $tags) {476 return $this->__call('mc_issue_set_tags', array(477 new SoapParam($username, 'username'),478 new SoapParam($password, 'password'),479 new SoapParam($issue_id, 'issue_id'),480 new SoapParam($tags, 'tags')481 ),482 array(483 'uri' => 'http://futureware.biz/mantisconnect',484 'soapaction' => ''485 )486 );487 }488 /**489 * Delete the issue with the specified id. 490 *491 * @param string $username492 * @param string $password493 * @param integer $issue_id494 * @return boolean495 */496 public function mc_issue_delete($username, $password, integer $issue_id) {497 return $this->__call('mc_issue_delete', array(498 new SoapParam($username, 'username'),499 new SoapParam($password, 'password'),500 new SoapParam($issue_id, 'issue_id')501 ),502 array(503 'uri' => 'http://futureware.biz/mantisconnect',504 'soapaction' => ''505 )506 );507 }508 /**509 * Submit a new note. 510 *511 * @param string $username512 * @param string $password513 * @param integer $issue_id514 * @param IssueNoteData $note515 * @return integer516 */517 public function mc_issue_note_add($username, $password, integer $issue_id, IssueNoteData $note) {518 return $this->__call('mc_issue_note_add', array(519 new SoapParam($username, 'username'),520 new SoapParam($password, 'password'),521 new SoapParam($issue_id, 'issue_id'),522 new SoapParam($note, 'note')523 ),524 array(525 'uri' => 'http://futureware.biz/mantisconnect',526 'soapaction' => ''527 )528 );529 }530 /**531 * Delete the note with the specified id. 532 *533 * @param string $username534 * @param string $password535 * @param integer $issue_note_id536 * @return boolean537 */538 public function mc_issue_note_delete($username, $password, integer $issue_note_id) {539 return $this->__call('mc_issue_note_delete', array(540 new SoapParam($username, 'username'),541 new SoapParam($password, 'password'),542 new SoapParam($issue_note_id, 'issue_note_id')543 ),544 array(545 'uri' => 'http://futureware.biz/mantisconnect',546 'soapaction' => ''547 )548 );549 }550 /**551 * Update a specific note of a specific issue. 552 *553 * @param string $username554 * @param string $password555 * @param IssueNoteData $note556 * @return boolean557 */558 public function mc_issue_note_update($username, $password, IssueNoteData $note) {559 return $this->__call('mc_issue_note_update', array(560 new SoapParam($username, 'username'),561 new SoapParam($password, 'password'),562 new SoapParam($note, 'note')563 ),564 array(565 'uri' => 'http://futureware.biz/mantisconnect',566 'soapaction' => ''567 )568 );569 }570 /**571 * Submit a new relationship. 572 *573 * @param string $username574 * @param string $password575 * @param integer $issue_id576 * @param RelationshipData $relationship577 * @return integer578 */579 public function mc_issue_relationship_add($username, $password, integer $issue_id, RelationshipData $relationship) {580 return $this->__call('mc_issue_relationship_add', array(581 new SoapParam($username, 'username'),582 new SoapParam($password, 'password'),583 new SoapParam($issue_id, 'issue_id'),584 new SoapParam($relationship, 'relationship')585 ),586 array(587 'uri' => 'http://futureware.biz/mantisconnect',588 'soapaction' => ''589 )590 );591 }592 /**593 * Delete the relationship for the specified issue. 594 *595 * @param string $username596 * @param string $password597 * @param integer $issue_id598 * @param integer $relationship_id599 * @return boolean600 */601 public function mc_issue_relationship_delete($username, $password, integer $issue_id, integer $relationship_id) {602 return $this->__call('mc_issue_relationship_delete', array(603 new SoapParam($username, 'username'),604 new SoapParam($password, 'password'),605 new SoapParam($issue_id, 'issue_id'),606 new SoapParam($relationship_id, 'relationship_id')607 ),608 array(609 'uri' => 'http://futureware.biz/mantisconnect',610 'soapaction' => ''611 )612 );613 }614 /**615 * Submit a new issue attachment. 616 *617 * @param string $username618 * @param string $password619 * @param integer $issue_id620 * @param string $name621 * @param string $file_type622 * @param base64Binary $content623 * @return integer624 */625 public function mc_issue_attachment_add($username, $password, integer $issue_id, $name, $file_type, $content) {626 return $this->__call('mc_issue_attachment_add', array(627 new SoapParam($username, 'username'),628 new SoapParam($password, 'password'),629 new SoapParam($issue_id, 'issue_id'),630 new SoapParam($name, 'name'),631 new SoapParam($file_type, 'file_type'),632 new SoapParam($content, 'content')633 ),634 array(635 'uri' => 'http://futureware.biz/mantisconnect',636 'soapaction' => ''637 )638 );639 }640 /**641 * Delete the issue attachment with the specified id. 642 *643 * @param string $username644 * @param string $password645 * @param integer $issue_attachment_id646 * @return boolean647 */648 public function mc_issue_attachment_delete($username, $password, integer $issue_attachment_id) {649 return $this->__call('mc_issue_attachment_delete', array(650 new SoapParam($username, 'username'),651 new SoapParam($password, 'password'),652 new SoapParam($issue_attachment_id, 'issue_attachment_id')653 ),654 array(655 'uri' => 'http://futureware.biz/mantisconnect',656 'soapaction' => ''657 )658 );659 }660 /**661 * Get the data for the specified issue attachment. 662 *663 * @param string $username664 * @param string $password665 * @param integer $issue_attachment_id666 * @return base64Binary667 */668 public function mc_issue_attachment_get($username, $password, integer $issue_attachment_id) {669 return $this->__call('mc_issue_attachment_get', array(670 new SoapParam($username, 'username'),671 new SoapParam($password, 'password'),672 new SoapParam($issue_attachment_id, 'issue_attachment_id')673 ),674 array(675 'uri' => 'http://futureware.biz/mantisconnect',676 'soapaction' => ''677 )678 );679 }680 /**681 * Add a new project to the tracker (must have admin privileges) 682 *683 * @param string $username684 * @param string $password685 * @param ProjectData $project686 * @return integer687 */688 public function mc_project_add($username, $password, ProjectData $project) {689 return $this->__call('mc_project_add', array(690 new SoapParam($username, 'username'),691 new SoapParam($password, 'password'),692 new SoapParam($project, 'project')693 ),694 array(695 'uri' => 'http://futureware.biz/mantisconnect',696 'soapaction' => ''697 )698 );699 }700 /**701 * Add a new project to the tracker (must have admin privileges) 702 *703 * @param string $username704 * @param string $password705 * @param integer $project_id706 * @return boolean707 */708 public function mc_project_delete($username, $password, integer $project_id) {709 return $this->__call('mc_project_delete', array(710 new SoapParam($username, 'username'),711 new SoapParam($password, 'password'),712 new SoapParam($project_id, 'project_id')713 ),714 array(715 'uri' => 'http://futureware.biz/mantisconnect',716 'soapaction' => ''717 )718 );719 }720 /**721 * Update a specific project to the tracker (must have admin privileges) 722 *723 * @param string $username724 * @param string $password725 * @param integer $project_id726 * @param ProjectData $project727 * @return boolean728 */729 public function mc_project_update($username, $password, integer $project_id, ProjectData $project) {730 return $this->__call('mc_project_update', array(731 new SoapParam($username, 'username'),732 new SoapParam($password, 'password'),733 new SoapParam($project_id, 'project_id'),734 new SoapParam($project, 'project')735 ),736 array(737 'uri' => 'http://futureware.biz/mantisconnect',738 'soapaction' => ''739 )740 );741 }742 /**743 * Get the id of the project with the specified name. 744 *745 * @param string $username746 * @param string $password747 * @param string $project_name748 * @return integer749 */750 public function mc_project_get_id_from_name($username, $password, $project_name) {751 return $this->__call('mc_project_get_id_from_name', array(752 new SoapParam($username, 'username'),753 new SoapParam($password, 'password'),754 new SoapParam($project_name, 'project_name')755 ),756 array(757 'uri' => 'http://futureware.biz/mantisconnect',758 'soapaction' => ''759 )760 );761 }762 /**763 * Get the issues that match the specified project id and paging details. 764 *765 * @param string $username766 * @param string $password767 * @param integer $project_id768 * @param integer $page_number769 * @param integer $per_page770 * @return IssueDataArray771 */772 public function mc_project_get_issues($username, $password, $project_id, $page_number, $per_page) {773 return $this->__call('mc_project_get_issues', array(774 new SoapParam($username, 'username'),775 new SoapParam($password, 'password'),776 new SoapParam($project_id, 'project_id'),777 new SoapParam($page_number, 'page_number'),778 new SoapParam($per_page, 'per_page')779 ),780 array(781 'uri' => 'http://futureware.biz/mantisconnect',782 'soapaction' => ''783 )784 );785 }786 /**787 * Get the issue headers that match the specified project id and paging details. 788 *789 * @param string $username790 * @param string $password791 * @param integer $project_id792 * @param integer $page_number793 * @param integer $per_page794 * @return IssueHeaderDataArray795 */796 public function mc_project_get_issue_headers($username, $password, integer $project_id, integer $page_number, integer $per_page) {797 return $this->__call('mc_project_get_issue_headers', array(798 new SoapParam($username, 'username'),799 new SoapParam($password, 'password'),800 new SoapParam($project_id, 'project_id'),801 new SoapParam($page_number, 'page_number'),802 new SoapParam($per_page, 'per_page')803 ),804 array(805 'uri' => 'http://futureware.biz/mantisconnect',806 'soapaction' => ''807 )808 );809 }810 /**811 * Get appropriate users assigned to a project by access level. 812 *813 * @param string $username814 * @param string $password815 * @param integer $project_id816 * @param integer $access817 * @return AccountDataArray818 */819 public function mc_project_get_users($username, $password, integer $project_id, integer $access) {820 return $this->__call('mc_project_get_users', array(821 new SoapParam($username, 'username'),822 new SoapParam($password, 'password'),823 new SoapParam($project_id, 'project_id'),824 new SoapParam($access, 'access')825 ),826 array(827 'uri' => 'http://futureware.biz/mantisconnect',828 'soapaction' => ''829 )830 );831 }832 /**833 * Get the list of projects that are accessible to the logged in user. 834 *835 * @param string $username836 * @param string $password837 * @return ProjectDataArray838 */839 public function mc_projects_get_user_accessible($username, $password) {840 return $this->__call('mc_projects_get_user_accessible', array(841 new SoapParam($username, 'username'),842 new SoapParam($password, 'password')843 ),844 array(845 'uri' => 'http://futureware.biz/mantisconnect',846 'soapaction' => ''847 )848 );849 }850 /**851 * Get the categories belonging to the specified project. 852 *853 * @param string $username854 * @param string $password855 * @param integer $project_id856 * @return StringArray857 */858 public function mc_project_get_categories($username, $password, integer $project_id) {859 return $this->__call('mc_project_get_categories', array(860 new SoapParam($username, 'username'),861 new SoapParam($password, 'password'),862 new SoapParam($project_id, 'project_id')863 ),864 array(865 'uri' => 'http://futureware.biz/mantisconnect',866 'soapaction' => ''867 )868 );869 }870 /**871 * Add a category of specific project. 872 *873 * @param string $username874 * @param string $password875 * @param integer $project_id876 * @param string $p_category_name877 * @return integer878 */879 public function mc_project_add_category($username, $password, integer $project_id, $p_category_name) {880 return $this->__call('mc_project_add_category', array(881 new SoapParam($username, 'username'),882 new SoapParam($password, 'password'),883 new SoapParam($project_id, 'project_id'),884 new SoapParam($p_category_name, 'p_category_name')885 ),886 array(887 'uri' => 'http://futureware.biz/mantisconnect',888 'soapaction' => ''889 )890 );891 }892 /**893 * Delete a category of specific project. 894 *895 * @param string $username896 * @param string $password897 * @param integer $project_id898 * @param string $p_category_name899 * @return integer900 */901 public function mc_project_delete_category($username, $password, integer $project_id, $p_category_name) {902 return $this->__call('mc_project_delete_category', array(903 new SoapParam($username, 'username'),904 new SoapParam($password, 'password'),905 new SoapParam($project_id, 'project_id'),906 new SoapParam($p_category_name, 'p_category_name')907 ),908 array(909 'uri' => 'http://futureware.biz/mantisconnect',910 'soapaction' => ''911 )912 );913 }914 /**915 * Rename a category of specific project. 916 *917 * @param string $username918 * @param string $password919 * @param integer $project_id920 * @param string $p_category_name921 * @param string $p_category_name_new922 * @param integer $p_assigned_to923 * @return integer924 */925 public function mc_project_rename_category_by_name($username, $password, integer $project_id, $p_category_name, $p_category_name_new, integer $p_assigned_to) {926 return $this->__call('mc_project_rename_category_by_name', array(927 new SoapParam($username, 'username'),928 new SoapParam($password, 'password'),929 new SoapParam($project_id, 'project_id'),930 new SoapParam($p_category_name, 'p_category_name'),931 new SoapParam($p_category_name_new, 'p_category_name_new'),932 new SoapParam($p_assigned_to, 'p_assigned_to')933 ),934 array(935 'uri' => 'http://futureware.biz/mantisconnect',936 'soapaction' => ''937 )938 );939 }940 /**941 * Get the versions belonging to the specified project. 942 *943 * @param string $username944 * @param string $password945 * @param integer $project_id946 * @return ProjectVersionDataArray947 */948 public function mc_project_get_versions($username, $password, integer $project_id) {949 return $this->__call('mc_project_get_versions', array(950 new SoapParam($username, 'username'),951 new SoapParam($password, 'password'),952 new SoapParam($project_id, 'project_id')953 ),954 array(955 'uri' => 'http://futureware.biz/mantisconnect',956 'soapaction' => ''957 )958 );959 }960 /**961 * Submit the specified version details. 962 *963 * @param string $username964 * @param string $password965 * @param ProjectVersionData $version966 * @return integer967 */968 public function mc_project_version_add($username, $password, ProjectVersionData $version) {969 return $this->__call('mc_project_version_add', array(970 new SoapParam($username, 'username'),971 new SoapParam($password, 'password'),972 new SoapParam($version, 'version')973 ),974 array(975 'uri' => 'http://futureware.biz/mantisconnect',976 'soapaction' => ''977 )978 );979 }980 /**981 * Update version method. 982 *983 * @param string $username984 * @param string $password985 * @param integer $version_id986 * @param ProjectVersionData $version987 * @return boolean988 */989 public function mc_project_version_update($username, $password, integer $version_id, ProjectVersionData $version) {990 return $this->__call('mc_project_version_update', array(991 new SoapParam($username, 'username'),992 new SoapParam($password, 'password'),993 new SoapParam($version_id, 'version_id'),994 new SoapParam($version, 'version')995 ),996 array(997 'uri' => 'http://futureware.biz/mantisconnect',998 'soapaction' => ''999 )1000 );1001 }1002 /**1003 * Delete the version with the specified id. 1004 *1005 * @param string $username1006 * @param string $password1007 * @param integer $version_id1008 * @return boolean1009 */1010 public function mc_project_version_delete($username, $password, integer $version_id) {1011 return $this->__call('mc_project_version_delete', array(1012 new SoapParam($username, 'username'),1013 new SoapParam($password, 'password'),1014 new SoapParam($version_id, 'version_id')1015 ),1016 array(1017 'uri' => 'http://futureware.biz/mantisconnect',1018 'soapaction' => ''1019 )1020 );1021 }1022 /**1023 * Get the released versions that belong to the specified project. 1024 *1025 * @param string $username1026 * @param string $password1027 * @param integer $project_id1028 * @return ProjectVersionDataArray1029 */1030 public function mc_project_get_released_versions($username, $password, integer $project_id) {1031 return $this->__call('mc_project_get_released_versions', array(1032 new SoapParam($username, 'username'),1033 new SoapParam($password, 'password'),1034 new SoapParam($project_id, 'project_id')1035 ),1036 array(1037 'uri' => 'http://futureware.biz/mantisconnect',1038 'soapaction' => ''1039 )1040 );1041 }1042 /**1043 * Get the unreleased version that belong to the specified project. 1044 *1045 * @param string $username1046 * @param string $password1047 * @param integer $project_id1048 * @return ProjectVersionDataArray1049 */1050 public function mc_project_get_unreleased_versions($username, $password, integer $project_id) {1051 return $this->__call('mc_project_get_unreleased_versions', array(1052 new SoapParam($username, 'username'),1053 new SoapParam($password, 'password'),1054 new SoapParam($project_id, 'project_id')1055 ),1056 array(1057 'uri' => 'http://futureware.biz/mantisconnect',1058 'soapaction' => ''1059 )1060 );1061 }1062 /**1063 * Get the attachments that belong to the specified project. 1064 *1065 * @param string $username1066 * @param string $password1067 * @param integer $project_id1068 * @return ProjectAttachmentDataArray1069 */1070 public function mc_project_get_attachments($username, $password, integer $project_id) {1071 return $this->__call('mc_project_get_attachments', array(1072 new SoapParam($username, 'username'),1073 new SoapParam($password, 'password'),1074 new SoapParam($project_id, 'project_id')1075 ),1076 array(1077 'uri' => 'http://futureware.biz/mantisconnect',1078 'soapaction' => ''1079 )1080 );1081 }1082 /**1083 * Get the custom fields that belong to the specified project. 1084 *1085 * @param string $username1086 * @param string $password1087 * @param integer $project_id1088 * @return CustomFieldDefinitionDataArray1089 */1090 public function mc_project_get_custom_fields($username, $password, integer $project_id) {1091 return $this->__call('mc_project_get_custom_fields', array(1092 new SoapParam($username, 'username'),1093 new SoapParam($password, 'password'),1094 new SoapParam($project_id, 'project_id')1095 ),1096 array(1097 'uri' => 'http://futureware.biz/mantisconnect',1098 'soapaction' => ''1099 )1100 );1101 }1102 /**1103 * Get the data for the specified project attachment. 1104 *1105 * @param string $username1106 * @param string $password1107 * @param integer $project_attachment_id1108 * @return base64Binary1109 */1110 public function mc_project_attachment_get($username, $password, integer $project_attachment_id) {1111 return $this->__call('mc_project_attachment_get', array(1112 new SoapParam($username, 'username'),1113 new SoapParam($password, 'password'),1114 new SoapParam($project_attachment_id, 'project_attachment_id')1115 ),1116 array(1117 'uri' => 'http://futureware.biz/mantisconnect',1118 'soapaction' => ''1119 )1120 );1121 }1122 /**1123 * Submit a new project attachment. 1124 *1125 * @param string $username1126 * @param string $password1127 * @param integer $project_id1128 * @param string $name1129 * @param string $title1130 * @param string $description1131 * @param string $file_type1132 * @param base64Binary $content1133 * @return integer1134 */1135 public function mc_project_attachment_add($username, $password, integer $project_id, $name, $title, $description, $file_type, $content) {1136 return $this->__call('mc_project_attachment_add', array(1137 new SoapParam($username, 'username'),1138 new SoapParam($password, 'password'),1139 new SoapParam($project_id, 'project_id'),1140 new SoapParam($name, 'name'),1141 new SoapParam($title, 'title'),1142 new SoapParam($description, 'description'),1143 new SoapParam($file_type, 'file_type'),1144 new SoapParam($content, 'content')1145 ),1146 array(1147 'uri' => 'http://futureware.biz/mantisconnect',1148 'soapaction' => ''1149 )1150 );1151 }1152 /**1153 * Delete the project attachment with the specified id. 1154 *1155 * @param string $username1156 * @param string $password1157 * @param integer $project_attachment_id1158 * @return boolean1159 */1160 public function mc_project_attachment_delete($username, $password, integer $project_attachment_id) {1161 return $this->__call('mc_project_attachment_delete', array(1162 new SoapParam($username, 'username'),1163 new SoapParam($password, 'password'),1164 new SoapParam($project_attachment_id, 'project_attachment_id')1165 ),1166 array(1167 'uri' => 'http://futureware.biz/mantisconnect',1168 'soapaction' => ''1169 )1170 );1171 }1172 /**1173 * Get the subprojects ID of a specific project. 1174 *1175 * @param string $username1176 * @param string $password1177 * @param integer $project_id1178 * @return StringArray1179 */1180 public function mc_project_get_all_subprojects($username, $password, integer $project_id) {1181 return $this->__call('mc_project_get_all_subprojects', array(1182 new SoapParam($username, 'username'),1183 new SoapParam($password, 'password'),1184 new SoapParam($project_id, 'project_id')1185 ),1186 array(1187 'uri' => 'http://futureware.biz/mantisconnect',1188 'soapaction' => ''1189 )1190 );1191 }1192 /**1193 * Get the filters defined for the specified project. 1194 *1195 * @param string $username1196 * @param string $password1197 * @param integer $project_id1198 * @return FilterDataArray1199 */1200 public function mc_filter_get($username, $password, integer $project_id) {1201 return $this->__call('mc_filter_get', array(1202 new SoapParam($username, 'username'),1203 new SoapParam($password, 'password'),1204 new SoapParam($project_id, 'project_id')1205 ),1206 array(1207 'uri' => 'http://futureware.biz/mantisconnect',1208 'soapaction' => ''1209 )1210 );1211 }1212 /**1213 * Get the issues that match the specified filter and paging details. 1214 *1215 * @param string $username1216 * @param string $password1217 * @param integer $project_id1218 * @param integer $filter_id1219 * @param integer $page_number1220 * @param integer $per_page1221 * @return IssueDataArray1222 */1223 public function mc_filter_get_issues($username, $password, integer $project_id, integer $filter_id, integer $page_number, integer $per_page) {1224 return $this->__call('mc_filter_get_issues', array(1225 new SoapParam($username, 'username'),1226 new SoapParam($password, 'password'),1227 new SoapParam($project_id, 'project_id'),1228 new SoapParam($filter_id, 'filter_id'),1229 new SoapParam($page_number, 'page_number'),1230 new SoapParam($per_page, 'per_page')1231 ),1232 array(1233 'uri' => 'http://futureware.biz/mantisconnect',1234 'soapaction' => ''1235 )1236 );1237 }1238 /**1239 * Get the issue headers that match the specified filter and paging details. 1240 *1241 * @param string $username1242 * @param string $password1243 * @param integer $project_id1244 * @param integer $filter_id1245 * @param integer $page_number1246 * @param integer $per_page1247 * @return IssueHeaderDataArray1248 */1249 public function mc_filter_get_issue_headers($username, $password, integer $project_id, integer $filter_id, integer $page_number, integer $per_page) {1250 return $this->__call('mc_filter_get_issue_headers', array(1251 new SoapParam($username, 'username'),1252 new SoapParam($password, 'password'),1253 new SoapParam($project_id, 'project_id'),1254 new SoapParam($filter_id, 'filter_id'),1255 new SoapParam($page_number, 'page_number'),1256 new SoapParam($per_page, 'per_page')1257 ),1258 array(1259 'uri' => 'http://futureware.biz/mantisconnect',1260 'soapaction' => ''1261 )1262 );1263 }1264 /**1265 * Get the value for the specified configuration variable. 1266 *1267 * @param string $username1268 * @param string $password1269 * @param string $config_var1270 * @return string1271 */1272 public function mc_config_get_string($username, $password, $config_var) {1273 return $this->__call('mc_config_get_string', array(1274 new SoapParam($username, 'username'),1275 new SoapParam($password, 'password'),1276 new SoapParam($config_var, 'config_var')1277 ),1278 array(1279 'uri' => 'http://futureware.biz/mantisconnect',1280 'soapaction' => ''1281 )1282 );1283 }1284 /**1285 * Notifies MantisBT of a check-in for the issue with the specified id. 1286 *1287 * @param string $username1288 * @param string $password1289 * @param integer $issue_id1290 * @param string $comment1291 * @param boolean $fixed1292 * @return boolean1293 */1294 public function mc_issue_checkin($username, $password, integer $issue_id, $comment, $fixed) {1295 return $this->__call('mc_issue_checkin', array(1296 new SoapParam($username, 'username'),1297 new SoapParam($password, 'password'),1298 new SoapParam($issue_id, 'issue_id'),1299 new SoapParam($comment, 'comment'),1300 new SoapParam($fixed, 'fixed')1301 ),1302 array(1303 'uri' => 'http://futureware.biz/mantisconnect',1304 'soapaction' => ''1305 )1306 );1307 }1308 /**1309 * Get the value for the specified user preference. 1310 *1311 * @param string $username1312 * @param string $password1313 * @param integer $project_id1314 * @param string $pref_name1315 * @return string1316 */1317 public function mc_user_pref_get_pref($username, $password, integer $project_id, $pref_name) {1318 return $this->__call('mc_user_pref_get_pref', array(1319 new SoapParam($username, 'username'),1320 new SoapParam($password, 'password'),1321 new SoapParam($project_id, 'project_id'),1322 new SoapParam($pref_name, 'pref_name')1323 ),1324 array(1325 'uri' => 'http://futureware.biz/mantisconnect',1326 'soapaction' => ''1327 )1328 );1329 }1330 /**1331 * Get profiles available to the current user. 1332 *1333 * @param string $username1334 * @param string $password1335 * @param integer $page_number1336 * @param integer $per_page1337 * @return ProfileDataSearchResult1338 */1339 public function mc_user_profiles_get_all($username, $password, integer $page_number, integer $per_page) {1340 return $this->__call('mc_user_profiles_get_all', array(1341 new SoapParam($username, 'username'),1342 new SoapParam($password, 'password'),1343 new SoapParam($page_number, 'page_number'),1344 new SoapParam($per_page, 'per_page')1345 ),1346 array(1347 'uri' => 'http://futureware.biz/mantisconnect',1348 'soapaction' => ''1349 )1350 );1351 }1352 /**1353 * Gets all the tags. 1354 *1355 * @param string $username1356 * @param string $password1357 * @param integer $page_number1358 * @param integer $per_page1359 * @return TagDataSearchResult1360 */1361 public function mc_tag_get_all($username, $password, integer $page_number, integer $per_page) {1362 return $this->__call('mc_tag_get_all', array(1363 new SoapParam($username, 'username'),1364 new SoapParam($password, 'password'),1365 new SoapParam($page_number, 'page_number'),1366 new SoapParam($per_page, 'per_page')1367 ),1368 array(1369 'uri' => 'http://futureware.biz/mantisconnect',1370 'soapaction' => ''1371 )1372 );1373 }1374 /**1375 * Creates a tag. 1376 *1377 * @param string $username1378 * @param string $password1379 * @param TagData $tag1380 * @return integer1381 */1382 public function mc_tag_add($username, $password, TagData $tag) {1383 return $this->__call('mc_tag_add', array(1384 new SoapParam($username, 'username'),1385 new SoapParam($password, 'password'),1386 new SoapParam($tag, 'tag')1387 ),1388 array(1389 'uri' => 'http://futureware.biz/mantisconnect',1390 'soapaction' => ''1391 )1392 );1393 }1394 /**1395 * Deletes a tag. 1396 *1397 * @param string $username1398 * @param string $password1399 * @param integer $tag_id1400 * @return boolean1401 */1402 public function mc_tag_delete($username, $password, integer $tag_id) {1403 return $this->__call('mc_tag_delete', array(1404 new SoapParam($username, 'username'),1405 new SoapParam($password, 'password'),1406 new SoapParam($tag_id, 'tag_id')1407 ),1408 array(1409 'uri' => 'http://futureware.biz/mantisconnect',1410 'soapaction' => ''1411 )1412 );1413 }1414}1415?>...

Full Screen

Full Screen

ColumnTypeGuesserTest.php

Source:ColumnTypeGuesserTest.php Github

copy

Full Screen

...25 * @return void26 */27 public function setUp() {28 parent::setUp();29 $this->_faker = $this->getMock('\\Faker\\Generator', array('__get', '__call'));30 $this->_guesser = new ColumnTypeGuesser($this->_faker);31 }32 /**33 * Test the constructor34 *35 * @return void36 * @covers ::__construct37 */38 public function testConstruct() {39 $guesser = new ColumnTypeGuesser($this->_faker);40 $this->assertAttributeInstanceOf('\\Faker\\Generator', '_generator', $guesser);41 }42 /**43 * Tests the guessFormat method with various types44 *45 * @param string $magicMethod The name of the magic method (__call or __get).46 * @param string $method The name of the method (e.g. randomNumber).47 * @param array $column The column schema with type etc.48 * @return void49 * @covers ::guessFormat50 * @dataProvider formatProvider51 */52 public function testGuessFormats($magicMethod, $method, $column) {53 $this->_faker->expects($this->at(0))->method($magicMethod)->with(54 $this->equalTo($method)55 );56 $result = $this->_guesser->guessFormat($column);57 $result();58 }59 /**60 * Tests the guessFormat method with various types resulting to null61 *62 * @param null|array $column The column schema with type etc.63 * @return void64 * @covers ::guessFormat65 * @dataProvider specialFormatProvider66 */67 public function testGuessSpecialFormat($column) {68 $result = $this->_guesser->guessFormat($column);69 $this->assertEquals($result, null);70 }71 /**72 * A format data provider73 *74 * @return array Formats75 */76 public function formatProvider() {77 return array(78 'boolean' => array('__get', 'boolean', array('type' => 'boolean')),79 'integer' => array('__call', 'randomNumber', array('type' => 'integer')),80 'bigInteger' => array('__call', 'randomNumber', array('type' => 'biginteger')),81 'decimal' => array('__call', 'randomFloat', array('type' => 'decimal')),82 'float' => array('__call', 'randomFloat', array('type' => 'float')),83 'uuid' => array('__call', 'uuid', array('type' => 'uuid')),84 'lexify' => array('__call', 'lexify', array('type' => 'string', 'length' => 4)),85 'string' => array('__call', 'text', array('type' => 'string', 'length' => 20)),86 'text' => array('__call', 'text', array('type' => 'text')),87 'date' => array('__call', 'iso8601', array('type' => 'date')),88 'datetime' => array('__call', 'iso8601', array('type' => 'datetime')),89 'timestamp' => array('__call', 'iso8601', array('type' => 'timestamp')),90 'time' => array('__call', 'iso8601', array('type' => 'time')),91 );92 }93 /**94 * A format data provider for resulting to null cases95 *96 * @return array Formats97 */98 public function specialFormatProvider() {99 return array(100 'null' => array(null),101 'binary' => array(102 array(103 'type' => 'binary'104 )...

Full Screen

Full Screen

CalculatorProxyServiceClient.php

Source:CalculatorProxyServiceClient.php Github

copy

Full Screen

...13class CalculatorProxyServiceClient extends AbstractProxyService implements CalculatorServiceInterface14{15 public function add(int $a, int $b)16 {17 return $this->client->__call(__FUNCTION__, func_get_args());18 }19 public function sum(IntegerValue $a, IntegerValue $b): IntegerValue20 {21 return $this->client->__call(__FUNCTION__, func_get_args());22 }23 public function divide($value, $divider)24 {25 return $this->client->__call(__FUNCTION__, func_get_args());26 }27 public function array(int $a, int $b): array28 {29 return $this->client->__call(__FUNCTION__, func_get_args());30 }31 public function error()32 {33 return $this->client->__call(__FUNCTION__, func_get_args());34 }35 public function getString(): ?string36 {37 return $this->client->__call(__FUNCTION__, func_get_args());38 }39 public function callable(callable $a, ?callable $b): array40 {41 return $this->client->__call(__FUNCTION__, func_get_args());42 }43 public function null()44 {45 return $this->client->__call(__FUNCTION__, func_get_args());46 }47}...

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$obj = 1;2$obj->test();3$obj = 2;4$obj->test();5$obj = 3;6$obj->test();7$obj = 4;8$obj->test();9$obj = 5;10$obj->test();11$obj = 6;12$obj->test();13$obj = 7;14$obj->test();15$obj = 8;16$obj->test();17$obj = 9;18$obj->test();19$obj = 10;20$obj->test();21$obj = 11;22$obj->test();23$obj = 12;24$obj->test();25$obj = 13;26$obj->test();27$obj = 14;28$obj->test();29$obj = 15;30$obj->test();31$obj = 16;32$obj->test();33$obj = 17;34$obj->test();35$obj = 18;36$obj->test();37$obj = 19;38$obj->test();

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1{2 public function __call($name, $arguments)3 {4 . implode(', ', $arguments). "5";6 }7}8$obj = new myclass;9$obj->runTest('in object context');10{11 public static function __callStatic($name, $arguments)12 {13 . implode(', ', $arguments). "14";15 }16}17myclass::runTest('in static context');18{19 public static function __callStatic($name, $arguments)20 {21 . implode(', ', $arguments). "22";23 }24}25myclass::runTest('in static context');26{27 public function __call($name, $arguments)28 {29 . implode(', ', $arguments). "30";31 }32}33$obj = new myclass;34$obj->runTest('in object context');35{36 public static function __callStatic($name, $arguments)37 {38 . implode(', ', $arguments). "39";40 }41}42myclass::runTest('in static context');43{44 public static function __callStatic($name, $arguments)45 {46 . implode(', ', $arguments). "47";48 }49}50myclass::runTest('in static context');

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$int = 1;2$int->test();3$int = 2;4$int->test();5$int = 3;6$int->test();7$int = 4;8$int->test();9$int = 5;10$int->test();11$int = 6;12$int->test();13$int = 7;14$int->test();15$int = 8;16$int->test();17$int = 9;18$int->test();19$int = 10;20$int->test();21$int = 11;22$int->test();23$int = 12;24$int->test();25$int = 13;26$int->test();27$int = 14;28$int->test();29$int = 15;30$int->test();31$int = 16;32$int->test();33$int = 17;34$int->test();

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1{2 public function __call($name, $arguments)3 {4 if ($name == 'isEven') {5 return $arguments[0] % 2 == 0;6 }7 }8}9$integer = new Integer();10echo $integer->isEven(4);11{12 public static function __callStatic($name, $arguments)13 {14 if ($name == 'isEven') {15 return $arguments[0] % 2 == 0;16 }17 }18}19echo Integer::isEven(4);20{21 public function isEven($n)22 {23 return $n % 2 == 0;24 }25}26$integer = new Integer();27echo $integer->isEven(4);28{29 public static function isEven($n)30 {31 return $n % 2 == 0;32 }33}34echo Integer::isEven(4);35{36 public function __call($name, $arguments)37 {38 if ($name == 'isEven') {39 return $arguments[0] % 2 == 0;40 }41 }42}43$integer = new Integer();44echo $integer->isEven(4);45{46 public static function __callStatic($name, $arguments)47 {48 if ($name == 'isEven') {49 return $arguments[0] % 2 == 0;50 }51 }52}53echo Integer::isEven(4);54{55 public function isEven($n)56 {57 return $n % 2 == 0;58 }59}60$integer = new Integer();

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$int = new integer();2$int->set(5);3echo $int->get();4$int = new integer();5$int->set(5);6echo $int->get();7$int = new integer();8$int->set(5);9echo $int->get();10$int = new integer();11$int->set(5);12echo $int->get();13$int = new integer();14$int->set(5);15echo $int->get();16$int = new integer();17$int->set(5);18echo $int->get();19$int = new integer();20$int->set(5);21echo $int->get();22$int = new integer();23$int->set(5);24echo $int->get();25$int = new integer();26$int->set(5);27echo $int->get();28$int = new integer();29$int->set(5);30echo $int->get();31$int = new integer();32$int->set(5);33echo $int->get();34$int = new integer();35$int->set(5);36echo $int->get();

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$a = 5;2$a->test();3$b = "hello";4$b->test();5$c = array(1,2,3);6$c->test();7{8 public function test()9 {10 echo "test";11 }12}13$d = new test;14$d->test();15function test1()16{17 echo "test1";18}19$d = 'test1';20$d->test();21$fp = fopen('test.txt','r');22$fp->test();23$e = NULL;24$e->test();25$f = TRUE;26$f->test();27$g = 5.5;28$g->test();29$h = 5.5;30$h->test();31$i = new unknown;32$i->test();33$j;34$j->test();35$k = new test;36$k->test();

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$a = 10;2echo $a->add(10,20);3$b = "Hello";4echo $b->add("World", "!");5$c = array(1,2,3);6echo $c->add(4,5);7class Test{8 public $a = 10;9 public $b = 20;10}11$d = new Test();12echo $d->add();13$e = fopen("5.php", "r");14echo $e->add(10, 20);15$f = null;16echo $f->add(10, 20);17$g = true;18echo $g->add(10, 20);19$h = 10.5;20echo $h->add(10, 20);21$i = new Test1();22echo $i->add(10, 20);23$j = new Test1();24echo $j->add(10, 20);25PHP __callStatic() Method26public static function __callStatic($method, $arguments)27The __callStatic()

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$integer = new integer();2$integer->method();3$integer = new integer();4$integer->method();5$integer = new integer();6$integer->method();7$integer = new integer();8$integer->method();9$integer = new integer();10$integer->method();11$integer = new integer();12$integer->method();13$integer = new integer();14$integer->method();15$integer = new integer();16$integer->method();17$integer = new integer();18$integer->method();19$integer = new integer();20$integer->method();21$integer = new integer();22$integer->method();23$integer = new integer();24$integer->method();25$integer = new integer();

Full Screen

Full Screen

__call

Using AI Code Generation

copy

Full Screen

1$obj = new integer(10);2$obj->add(20);3$obj->sub(10);4$obj->mul(2);5$obj->div(2);6$obj->mod(2);7echo $obj->value;8$obj = new integer(10);9$obj->add(20);10$obj->sub(10);11$obj->mul(2);12$obj->div(2);13$obj->mod(2);14echo $obj->value;

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run Atoum automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Trigger __call code on LambdaTest Cloud Grid

Execute automation tests with __call on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful