-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Aaron Heckmann
committed
Oct 7, 2013
1 parent
ee25c64
commit 3ee5fec
Showing
6 changed files
with
54 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
HTTP/1.1 200 OK | ||
Content-Type: application/xml; charset=utf-8 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
|
||
<?php | ||
|
||
class Recurly_BaseTest extends UnitTestCase { | ||
// __parseXmlToNewObject($xml, $client) | ||
// __parseXmlToUpdateObject($xml) | ||
|
||
function setUp() { | ||
$this->client = new MockRecurly_Client(); | ||
mockRequest($this->client, 'accounts/empty.xml', array('GET', '/accounts/abcdef1234567890')); | ||
} | ||
|
||
public function testParsingXMLToNewObject() { | ||
try { | ||
$account = Recurly_Account::get('abcdef1234567890', $this->client); | ||
} | ||
catch (Exception $e) { | ||
$this->fail("Could not parse empty XML string"); | ||
} | ||
|
||
$this->assertEqual($account, null); | ||
} | ||
|
||
public function testParsingXMLToUpdateObject() { | ||
//try { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong. |
||
//$out = Recurly_Resource::__parseXmlToUpdateObject(''); | ||
//} | ||
//catch (Exception $e) { | ||
//$this->fail("Could not parse empty XML string"); | ||
//} | ||
|
||
//$this->assertEqual($out, null); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
any reason for leaving this commented out?