billingCyclesRemaining() public static method

public static billingCyclesRemaining ( )
 public function testSearch_billingCyclesRemaing()
 {
     $creditCard = SubscriptionHelper::createCreditCard();
     $triallessPlan = SubscriptionHelper::triallessPlan();
     $subscription_4 = Braintree\Subscription::create(['paymentMethodToken' => $creditCard->token, 'planId' => $triallessPlan['id'], 'numberOfBillingCycles' => 4])->subscription;
     $subscription_8 = Braintree\Subscription::create(['paymentMethodToken' => $creditCard->token, 'planId' => $triallessPlan['id'], 'numberOfBillingCycles' => 8])->subscription;
     $subscription_10 = Braintree\Subscription::create(['paymentMethodToken' => $creditCard->token, 'planId' => $triallessPlan['id'], 'numberOfBillingCycles' => 10])->subscription;
     $collection = Braintree\Subscription::search([Braintree\SubscriptionSearch::billingCyclesRemaining()->between(5, 10)]);
     $this->assertFalse(Test\Helper::includes($collection, $subscription_4));
     $this->assertTrue(Test\Helper::includes($collection, $subscription_8));
     $this->assertTrue(Test\Helper::includes($collection, $subscription_10));
 }
 public function testSearch_billingCyclesRemaining_isRangeNode()
 {
     $node = Braintree\SubscriptionSearch::billingCyclesRemaining();
     $this->assertInstanceOf('Braintree\\RangeNode', $node);
 }