EndsWithNodeTest.php 343 B

1234567891011121314151617
  1. <?php
  2. namespace Test\Unit;
  3. require_once dirname(__DIR__) . '/Setup.php';
  4. use Test\Setup;
  5. use Braintree;
  6. class EndsWithNodeTest extends Setup
  7. {
  8. public function testEndsWith()
  9. {
  10. $node = new Braintree\EndsWithNode('field');
  11. $node->endsWith('value');
  12. $this->assertEquals(['ends_with' => 'value'], $node->toParam());
  13. }
  14. }