coduo / TuTu

Flexible HTTP server mocking tool in PHP. TuTu can work with built-in php server so everything that you need to use is php.
MIT License
58 stars 10 forks source link

Take care of comments in matched xml #24

Open defrag opened 9 years ago

defrag commented 9 years ago

Currently while sending and matching for example soap request, the comments from request prevent TuTu from matching the request. Example:

This request:

<soap:Body>
      <test:listStuff>
         <test:rq>
            <!--Required:-->
            <test:environment>prod</test:environment>            
         </test:rq>
      </test:listStuff>
</soap:Body>

Will not match this TuTu configuration:

<soap:Body>
      <test:listStuff>
         <test:rq>
            <test:environment>@string@</test:environment>            
         </test:rq>
      </test:listStuff>
</soap:Body>