/home/desid573/public_html/app/braintree/tests/unit
Edit: /home/desid573/public_html/app/braintree/tests/unit/PayPalAccountTest.php (1307B)
setExpectedException('PHPUnit_Framework_Error', 'Undefined property on Braintree\PayPalAccount: foo');
$paypalAccount = Braintree\PayPalAccount::factory([]);
$paypalAccount->foo;
}
public function testIsDefault()
{
$paypalAccount = Braintree\PayPalAccount::factory(['default' => true]);
$this->assertTrue($paypalAccount->isDefault());
$paypalAccount = Braintree\PayPalAccount::factory(['default' => false]);
$this->assertFalse($paypalAccount->isDefault());
}
public function testErrorsOnFindWithBlankArgument()
{
$this->setExpectedException('InvalidArgumentException');
Braintree\PayPalAccount::find('');
}
public function testErrorsOnFindWithWhitespaceArgument()
{
$this->setExpectedException('InvalidArgumentException');
Braintree\PayPalAccount::find(' ');
}
public function testErrorsOnFindWithWhitespaceCharacterArgument()
{
$this->setExpectedException('InvalidArgumentException');
Braintree\PayPalAccount::find('\t');
}
}