/home/desid573/public_html/app/braintree/tests/unit
Edit: /home/desid573/public_html/app/braintree/tests/unit/DiscountTest.php (928B)
assertInstanceOf('Braintree\Discount', $discount);
}
public function testToString()
{
$discountParams = [
"amount" => "100.00",
"description" => "some description",
"id" => "1",
"kind" => "discount",
"name" => "php_discount",
"neverExpires" => "false",
"numberOfBillingCycles" => "1"
];
$discount = Braintree\Discount::factory($discountParams);
$this->assertEquals("Braintree\Discount[amount=100.00, description=some description, id=1, kind=discount, name=php_discount, neverExpires=false, numberOfBillingCycles=1]", (string) $discount);
}
}