Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SubscriptionAddon: fix call to undefined method Recurly_SubscriptionAddOn::__valuesString() #811

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions Tests/Recurly/SubscriptionAddOn_Test.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?php

class Recurly_SubscriptionAddOn_Test extends Recurly_TestCase
{
public function testToString() {
$addon = new \Recurly_SubscriptionAddOn();

$this->assertSame('<Recurly_SubscriptionAddOn[new] >', $addon->__toString());
}
}
9 changes: 0 additions & 9 deletions lib/recurly/subscription_addon.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,4 @@ protected function getChangedAttributes($nested = false) {
);
return array_diff_key($this->_values, $immutable);
}

/**
* Pretty string version of the object
*/
public function __toString() {
$class = get_class($this);
$values = $this->__valuesString();
return "<$class $values>";
}
}
Loading