|
@@ 128-134 (lines=7) @@
|
| 125 |
|
/** |
| 126 |
|
* @expectedException \InvalidArgumentException |
| 127 |
|
*/ |
| 128 |
|
public function testStoreStatementsWithNonStatementObject() |
| 129 |
|
{ |
| 130 |
|
$statement1 = $this->createStatement(); |
| 131 |
|
$statement2 = $this->createStatement(); |
| 132 |
|
|
| 133 |
|
$this->client->storeStatements(array($statement1, new \stdClass(), $statement2)); |
| 134 |
|
} |
| 135 |
|
|
| 136 |
|
/** |
| 137 |
|
* @expectedException \InvalidArgumentException |
|
@@ 139-145 (lines=7) @@
|
| 136 |
|
/** |
| 137 |
|
* @expectedException \InvalidArgumentException |
| 138 |
|
*/ |
| 139 |
|
public function testStoreStatementsWithNonObject() |
| 140 |
|
{ |
| 141 |
|
$statement1 = $this->createStatement(); |
| 142 |
|
$statement2 = $this->createStatement(); |
| 143 |
|
|
| 144 |
|
$this->client->storeStatements(array($statement1, 'foo', $statement2)); |
| 145 |
|
} |
| 146 |
|
|
| 147 |
|
/** |
| 148 |
|
* @expectedException \InvalidArgumentException |
|
@@ 150-156 (lines=7) @@
|
| 147 |
|
/** |
| 148 |
|
* @expectedException \InvalidArgumentException |
| 149 |
|
*/ |
| 150 |
|
public function testStoreStatementsWithId() |
| 151 |
|
{ |
| 152 |
|
$statement1 = $this->createStatement(); |
| 153 |
|
$statement2 = $this->createStatement('12345678-1234-5678-1234-567812345679'); |
| 154 |
|
|
| 155 |
|
$this->client->storeStatements(array($statement1, $statement2)); |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
public function testVoidStatement() |
| 159 |
|
{ |