[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
There are no open issues
tardypad
pprkut
  1. 
      
  2. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
    The issue has been resolved. Show all issues
    extending the real SoapClient class does not work?
  3. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
     
    The issue has been dropped. Show all issues
    I'd rather have that initialized in __construct()
  4. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
    The issue has been dropped. Show all issues
    every property should get initialized here
  5. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
     
     
     
     
     
     
    The issue has been dropped. Show all issues
    every property should be unset here
  6. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
    The issue has been dropped. Show all issues
    return $this->soap_client->$method(...$arguments);
    
    https://wiki.php.net/rfc/argument_unpacking
  7. src/Lunr/Spark/LunrSoapClient.php (Diff revision 1)
     
     
    The issue has been dropped. Show all issues
    this should check whether the values are valid before instantiating it
  8. src/Lunr/Spark/Tests/LunrSoapClientCallTest.php (Diff revision 1)
     
     
     
     
    The issue has been dropped. Show all issues
    why no tests here?
  9. tests/phpunit.xml (Diff revision 1)
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
     
    The issue has been resolved. Show all issues
    ahem
  10. 
      
tardypad
pprkut
  1. 
      
  2. The issue has been resolved. Show all issues
    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...