[Spark][RFC] add LunrSoapClient class

Review Request #344 — Created Feb. 19, 2015 and submitted

tardypad
Lunr
tardypad:soap_client
lunr
Wrapper around SoapClient class
unit tests

no tests for __call and init_client
  • 0
  • 0
  • 3
  • 6
  • 9
Description From Last Updated
tardypad
pprkut
  1. 
      
  2. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
    extending the real SoapClient class does not work?
  3. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
     
    I'd rather have that initialized in __construct()
  4. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
    every property should get initialized here
  5. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
     
     
     
    every property should be unset here
  6. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
    return $this->soap_client->$method(...$arguments);
    
    https://wiki.php.net/rfc/argument_unpacking
  7. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
    this should check whether the values are valid before instantiating it
  8. src/Lunr/Spark/Tests/LunrSoapClientCallTest.php (Diff revision 1)
     
     
     
     
    why no tests here?
  9. tests/phpunit.xml (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
  10. 
      
tardypad
pprkut
  1. 
      
  2. why not assertPropertyEquals()?
    1. Yeah this part is kind of hacky but I didn't find a better way to test that the headers are set properly.
      I tried with "assertPropertyEquals" but it doesn't work: "ReflectionException: Property __default_headers does not exist"
      This "property" only appears after setting the headers
  3. 
      
pprkut
  1. Ship It!
  2. 
      
tardypad
Review request changed

Status: Closed (submitted)

Change Summary:

Merged into master
Loading...