~ttx/ubuntu/lucid/cloudfusion/cloudfusion.lucid

« back to all changes in this revision

Viewing changes to _tests/sdb/batch_put_attributes3.phpt

  • Committer: Scott Moser
  • Date: 2010-02-16 20:24:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: smoser@ubuntu.com-20100216202400-ligl0bd6zloz889o
importĀ 2.5.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
--TEST--
 
2
AmazonSDB::batch_put_attributes with replace all and returnCurlHandle
 
3
 
 
4
--FILE--
 
5
<?php
 
6
        // Dependencies
 
7
        require_once dirname(__FILE__) . '/../../cloudfusion.class.php';
 
8
 
 
9
        // Instantiate
 
10
        $sdb = new AmazonSDB();
 
11
 
 
12
        // Test data
 
13
        $response = $sdb->batch_put_attributes('warpshare-unit-test', array(
 
14
                'item1' => array(
 
15
                        'key1' => 'value1',
 
16
                        'key2' => array(
 
17
                                'value1',
 
18
                                'value2',
 
19
                                'value3',
 
20
                        ),
 
21
                        'key3' => array('value1'),
 
22
                ),
 
23
                'item2' => array(
 
24
                        'key1' => 'value1',
 
25
                        'key2' => array(
 
26
                                'value1',
 
27
                                'value2',
 
28
                                'value3',
 
29
                        ),
 
30
                        'key3' => array('value1'),
 
31
                ),
 
32
                'item3' => array(
 
33
                        'key1' => 'value1',
 
34
                        'key2' => array(
 
35
                                'value1',
 
36
                                'value2',
 
37
                                'value3',
 
38
                        ),
 
39
                        'key3' => array('value1'),
 
40
                ),
 
41
        ), true, true);
 
42
 
 
43
        // Success?
 
44
        var_dump($response);
 
45
?>
 
46
 
 
47
--EXPECT--
 
48
resource(9) of type (curl)