@@ 616-625 (lines=10) @@ | ||
613 | //$this->client->return_type = 'xmlrpcvals'; |
|
614 | } |
|
615 | ||
616 | public function testCatchWarnings() |
|
617 | { |
|
618 | $m = new xmlrpcmsg('tests.generatePHPWarning', array( |
|
619 | new xmlrpcval('whatever', 'string'), |
|
620 | )); |
|
621 | $v = $this->send($m); |
|
622 | if ($v) { |
|
623 | $this->assertEquals(true, $v->scalarval()); |
|
624 | } |
|
625 | } |
|
626 | ||
627 | public function testCatchExceptions() |
|
628 | { |
|
@@ 779-786 (lines=8) @@ | ||
776 | $this->assertEquals('Michigan', $v->scalarval()); |
|
777 | } |
|
778 | ||
779 | public function testServerClosure() |
|
780 | { |
|
781 | $m = new xmlrpcmsg('tests.getStateName.10', array( |
|
782 | new xmlrpcval(23, 'int'), |
|
783 | )); |
|
784 | $v = $this->send($m); |
|
785 | $this->assertEquals('Michigan', $v->scalarval()); |
|
786 | } |
|
787 | ||
788 | public function testServerWrappedClosure() |
|
789 | { |
|
@@ 788-795 (lines=8) @@ | ||
785 | $this->assertEquals('Michigan', $v->scalarval()); |
|
786 | } |
|
787 | ||
788 | public function testServerWrappedClosure() |
|
789 | { |
|
790 | $m = new xmlrpcmsg('tests.getStateName.11', array( |
|
791 | new xmlrpcval(23, 'int'), |
|
792 | )); |
|
793 | $v = $this->send($m); |
|
794 | $this->assertEquals('Michigan', $v->scalarval()); |
|
795 | } |
|
796 | ||
797 | public function testServerWrappedClass() |
|
798 | { |
|
@@ 797-804 (lines=8) @@ | ||
794 | $this->assertEquals('Michigan', $v->scalarval()); |
|
795 | } |
|
796 | ||
797 | public function testServerWrappedClass() |
|
798 | { |
|
799 | $m = new xmlrpcmsg('tests.xmlrpcServerMethodsContainer.findState', array( |
|
800 | new xmlrpcval(23, 'int'), |
|
801 | )); |
|
802 | $v = $this->send($m); |
|
803 | $this->assertEquals('Michigan', $v->scalarval()); |
|
804 | } |
|
805 | ||
806 | public function testWrappedMethod() |
|
807 | { |