예제 #1
0
파일: MSTest.php 프로젝트: psagi/sdo
 /**
  * Set up the strings representing the expected test outputs
  */
 public function setUp()
 {
     $this->mpd = file_get_contents(dirname(__FILE__) . "/TestServiceCorrectMPD");
     SCA_Bindings_message_SAMClient::$test_mode = true;
     /*preparing test messages for testOperationSelection
            msg1 has 'scaOperationName' property, and = 'hello'
                  wrapper should invoke service's operation hello
       */
     $this->msg1 = new SAMMessage("test message 1");
     $this->msg1->header->SAM_TYPE = SAM_TEXT;
     $this->msg1->header->SAM_MESSAGEID = "id-test0001";
     $this->msg1->header->scaOperationName = "hello";
     /*
          msg2 does have 'scaOperationName' property
                wrapper should invoke 'onMessage' by default
     */
     $this->msg2 = new SAMMessage("test message 2");
     $this->msg2->header->SAM_TYPE = SAM_TEXT;
     $this->msg2->header->SAM_MESSAGEID = "id-test0002";
     /*copy names.xsd to current directory*/
     copy(dirname(__FILE__) . "/names_xsd", "names.xsd");
 }