@@ 604-613 (lines=10) @@ | ||
601 | $this->client->return_type = 'xmlrpcvals'; |
|
602 | } |
|
603 | ||
604 | public function testCatchWarnings() |
|
605 | { |
|
606 | $m = new xmlrpcmsg('tests.generatePHPWarning', array( |
|
607 | new xmlrpcval('whatever', 'string'), |
|
608 | )); |
|
609 | $v = $this->send($m); |
|
610 | if ($v) { |
|
611 | $this->assertEquals(true, $v->scalarval()); |
|
612 | } |
|
613 | } |
|
614 | ||
615 | public function testCatchExceptions() |
|
616 | { |
|
@@ 767-774 (lines=8) @@ | ||
764 | $this->assertEquals('Michigan', $v->scalarval()); |
|
765 | } |
|
766 | ||
767 | public function testServerClosure() |
|
768 | { |
|
769 | $m = new xmlrpcmsg('tests.getStateName.10', array( |
|
770 | new xmlrpcval(23, 'int'), |
|
771 | )); |
|
772 | $v = $this->send($m); |
|
773 | $this->assertEquals('Michigan', $v->scalarval()); |
|
774 | } |
|
775 | ||
776 | public function testServerWrappedClosure() |
|
777 | { |
|
@@ 776-783 (lines=8) @@ | ||
773 | $this->assertEquals('Michigan', $v->scalarval()); |
|
774 | } |
|
775 | ||
776 | public function testServerWrappedClosure() |
|
777 | { |
|
778 | $m = new xmlrpcmsg('tests.getStateName.11', array( |
|
779 | new xmlrpcval(23, 'int'), |
|
780 | )); |
|
781 | $v = $this->send($m); |
|
782 | $this->assertEquals('Michigan', $v->scalarval()); |
|
783 | } |
|
784 | ||
785 | public function testServerWrappedClass() |
|
786 | { |
|
@@ 785-792 (lines=8) @@ | ||
782 | $this->assertEquals('Michigan', $v->scalarval()); |
|
783 | } |
|
784 | ||
785 | public function testServerWrappedClass() |
|
786 | { |
|
787 | $m = new xmlrpcmsg('tests.xmlrpcServerMethodsContainer.findState', array( |
|
788 | new xmlrpcval(23, 'int'), |
|
789 | )); |
|
790 | $v = $this->send($m); |
|
791 | $this->assertEquals('Michigan', $v->scalarval()); |
|
792 | } |
|
793 | ||
794 | public function testWrappedMethod() |
|
795 | { |