/**
  * @param $wsdl
  * @param null $user
  * @param null $password
  * @param null $proxy_host
  * @param null $proxy_port
  */
 public function __construct($wsdl, $user = null, $password = null, $proxy_host = null, $proxy_port = null)
 {
     parent::__construct($wsdl, $user, $password, $proxy_host, $proxy_port);
 }
Exemple #2
0
 context("for grouped test", function () {
     before(function () {
         $testsuite = new Testsuite("case-title-1", function () {
         });
         $testsuite->set_parent(new TestSuite("suite-title-2", function () {
         }));
         $testsuite->add_to_group("group-1");
         $testsuite->add_to_group("group-2");
         $this->result = $testsuite->result;
         $this->groups = array("group-1", "group-2");
     });
     it_behaves_like("grouped test result");
 });
 describe("get cases and suites", function () {
     before_each(function () {
         $testsuite = new Testsuite("suite-title-1", function () {
         });
         $testsuite_parent = new TestSuite("suite-title-2", function () {
         });
         $testcase_1 = new TestCase("case-title-1", function () {
         });
         $testcase_2 = new TestCase("case-title-2", function () {
         });
         $testsuite->add($testcase_1);
         $testsuite_parent->add($testcase_2);
         $testsuite_parent->add($testsuite);
         $this->result = $testsuite_parent->result;
     });
     describe("#cases", function () {
         it("should return its direct children case results", function () {
             $cases = $this->result->cases();
             ok(count($cases) == 1);