Skip to content

Commit

Permalink
Fixed one more array syntax issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremeamia committed Oct 8, 2014
1 parent 9c4e8e0 commit 5ce0c51
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class PutRequestTest extends \Guzzle\Tests\GuzzleTestCase
public function testConstructorSetsValues()
{
// Instantiate with Item object.
$item = new Item(['id' => ['S' => 'foo']]);
$item = new Item(array('id' => array('S' => 'foo')));
$putRequest = new PutRequest($item, 'table');
$this->assertEquals($item->toArray(), $putRequest->getItem()->toArray());

// Instantiate with item array.
$item = ['id' => ['S' => 'foo']];
$putRequest = new PutRequest(array('id' => array('S' => 'foo')), 'table');
$item = array('id' => array('S' => 'foo'));
$putRequest = new PutRequest($item, 'table');
$this->assertEquals($item, $putRequest->getItem()->toArray());
}

Expand Down

0 comments on commit 5ce0c51

Please sign in to comment.