| Server IP : 104.21.21.239 / Your IP : 216.73.216.55 Web Server : Apache/2.4.68 (Amazon Linux) OpenSSL/3.5.7 System : Linux ip-172-31-69-123.ec2.internal 6.1.177-224.371.amzn2023.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jul 27 20:28:29 UTC 2026 x86_64 User : ec2-user ( 1000) PHP Version : 8.4.24 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /home/tgnewdev/admin/vendor/braintree_php/tests/unit/ |
Upload File : |
<?php
namespace Test\Unit;
require_once dirname(__DIR__) . '/Setup.php';
use Test\Setup;
use Braintree;
class MultipleValueOrTextNodeTest extends Setup
{
public function testIn()
{
$node = new Braintree\MultipleValueOrTextNode('field');
$node->in(['firstValue', 'secondValue']);
$this->assertEquals(['firstValue', 'secondValue'], $node->toParam());
}
public function testIs()
{
$node = new Braintree\MultipleValueOrTextNode('field');
$node->is('value');
$this->assertEquals(['is' => 'value'], $node->toParam());
}
public function testIsNot()
{
$node = new Braintree\MultipleValueOrTextNode('field');
$node->isNot('value');
$this->assertEquals(['is_not' => 'value'], $node->toParam());
}
public function testStartsWith()
{
$node = new Braintree\MultipleValueOrTextNode('field');
$node->startsWith('beginning');
$this->assertEquals(['starts_with' => 'beginning'], $node->toParam());
}
public function testEndsWith()
{
$node = new Braintree\MultipleValueOrTextNode('field');
$node->endsWith('end');
$this->assertEquals(['ends_with' => 'end'], $node->toParam());
}
public function testContains()
{
$node = new Braintree\MultipleValueOrTextNode('field');
$node->contains('middle');
$this->assertEquals(['contains' => 'middle'], $node->toParam());
}
}