diff --git a/Tests/Recurly/SubscriptionAddOn_Test.php b/Tests/Recurly/SubscriptionAddOn_Test.php new file mode 100644 index 00000000..ec3144a0 --- /dev/null +++ b/Tests/Recurly/SubscriptionAddOn_Test.php @@ -0,0 +1,10 @@ +assertSame('', $addon->__toString()); + } +} diff --git a/lib/recurly/subscription_addon.php b/lib/recurly/subscription_addon.php index 7c0aff01..cb00198e 100644 --- a/lib/recurly/subscription_addon.php +++ b/lib/recurly/subscription_addon.php @@ -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>"; - } }