Файл: Main Website Files/assets/libraries/stripe-php-2.2.0/tests/InvalidRequestErrorTest.php
Строк: 14
<?php
namespace Stripe;
class InvalidRequestErrorTest extends TestCase
{
public function testInvalidObject()
{
self::authorizeFromEnv();
try {
Customer::retrieve('invalid');
} catch (ErrorInvalidRequest $e) {
$this->assertSame(404, $e->getHttpStatus());
}
}
public function testBadData()
{
self::authorizeFromEnv();
try {
Charge::create();
} catch (ErrorInvalidRequest $e) {
$this->assertSame(400, $e->getHttpStatus());
}
}
}