forked from LiveCarta/PayPal-PHP-SDK
Enabled EC Parameters support
- Updated Api to enabled EC Parameters - Updated Tests - Updated Logging Manager - Added a feature to do validation on accessors.
This commit is contained in:
@@ -1,21 +1,24 @@
|
||||
<?php
|
||||
namespace PayPal\Test\Common;
|
||||
|
||||
use PayPal\Common\PPArrayUtil;
|
||||
|
||||
class ArrayUtilTest extends \PHPUnit_Framework_TestCase {
|
||||
|
||||
public function testIsAssocArray() {
|
||||
|
||||
$arr = array(1, 2, 3);
|
||||
$this->assertEquals(false, PPArrayUtil::isAssocArray($arr));
|
||||
|
||||
$arr = array(
|
||||
'name' => 'John Doe',
|
||||
'City' => 'San Jose'
|
||||
);
|
||||
$this->assertEquals(true, PPArrayUtil::isAssocArray($arr));
|
||||
|
||||
$arr[] = 'CA';
|
||||
$this->assertEquals(false, PPArrayUtil::isAssocArray($arr));
|
||||
}
|
||||
class ArrayUtilTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testIsAssocArray()
|
||||
{
|
||||
|
||||
$arr = array(1, 2, 3);
|
||||
$this->assertEquals(false, PPArrayUtil::isAssocArray($arr));
|
||||
|
||||
$arr = array(
|
||||
'name' => 'John Doe',
|
||||
'City' => 'San Jose'
|
||||
);
|
||||
$this->assertEquals(true, PPArrayUtil::isAssocArray($arr));
|
||||
|
||||
$arr[] = 'CA';
|
||||
$this->assertEquals(false, PPArrayUtil::isAssocArray($arr));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user