Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
no message
  • Loading branch information
dmitrii-fediuk committed Oct 19, 2017
1 parent 3c8ee82 commit 34b86aa
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
9 changes: 8 additions & 1 deletion T/CaseT.php
Expand Up @@ -5,4 +5,11 @@
* @see \Dfe\Stripe\T\CaseT\CountrySpec
* @method \Dfe\Stripe\Method m()
*/
abstract class CaseT extends \Df\Payment\TestCase {}
abstract class CaseT extends \Df\Payment\TestCase {
/**
* 2017-10-19
* @override
* @see \Df\Core\TestCase::setUp()
*/
protected function setUp() {parent::setUp(); $this->m()->s()->init();}
}
12 changes: 12 additions & 0 deletions T/CaseT/CountrySpec.php
@@ -1,7 +1,19 @@
<?php
namespace Dfe\Stripe\T\CaseT;
use Stripe\CountrySpec as lCountrySpec;
// 2017-10-19
// https://github.com/stripe/stripe-php/blob/v5.3.0/tests/CountrySpecTest.php
// «Stripe API Reference» → «Country Specs»: https://stripe.com/docs/api#country_specs
final class CountrySpec extends \Dfe\Stripe\T\CaseT {
/** @test 2017-10-19 */
function t00() {}

/**
* @test 2017-10-19
* https://stripe.com/docs/api#country_spec_object-supported_payment_methods
*/
function t01() {
echo df_json_encode(lCountrySpec::retrieve('US')['supported_payment_methods']);
echo df_json_encode(lCountrySpec::retrieve('NL')['supported_payment_methods']);
}
}

0 comments on commit 34b86aa

Please sign in to comment.