class Braintree_TextNodeTest in Commerce Braintree 7
Same name in this branch
- 7 braintree_php/tests/unit/TextNodeTest.php \Braintree_TextNodeTest
- 7 braintree_php/tests/integration/TextNodeTest.php \Braintree_TextNodeTest
Hierarchy
- class \Braintree_TextNodeTest extends \PHPUnit_Framework_TestCase
Expanded class hierarchy of Braintree_TextNodeTest
File
- braintree_php/
tests/ unit/ TextNodeTest.php, line 4
View source
class Braintree_TextNodeTest extends PHPUnit_Framework_TestCase {
function testIs() {
$node = new Braintree_TextNode('field');
$node
->is('value');
$this
->assertEquals(array(
'is' => 'value',
), $node
->toParam());
}
function testIsNot() {
$node = new Braintree_TextNode('field');
$node
->isNot('value');
$this
->assertEquals(array(
'is_not' => 'value',
), $node
->toParam());
}
function testStartsWith() {
$node = new Braintree_TextNode('field');
$node
->startsWith('beginning');
$this
->assertEquals(array(
'starts_with' => 'beginning',
), $node
->toParam());
}
function testEndsWith() {
$node = new Braintree_TextNode('field');
$node
->endsWith('end');
$this
->assertEquals(array(
'ends_with' => 'end',
), $node
->toParam());
}
function testContains() {
$node = new Braintree_TextNode('field');
$node
->contains('middle');
$this
->assertEquals(array(
'contains' => 'middle',
), $node
->toParam());
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
Braintree_TextNodeTest:: |
function | |||
Braintree_TextNodeTest:: |
function | |||
Braintree_TextNodeTest:: |
function | |||
Braintree_TextNodeTest:: |
function | |||
Braintree_TextNodeTest:: |
function |