Open Journal Systems  3.3.0
BatchTransferExceptionTest.php
1 <?php
2 
4 
6 
8 {
9  public function testContainsBatch()
10  {
11  $e = new \Exception('Baz!');
12  $t = $this->getMock('Guzzle\Batch\BatchTransferInterface');
13  $d = $this->getMock('Guzzle\Batch\BatchDivisorInterface');
14  $transferException = new BatchTransferException(array('foo'), array(1, 2), $e, $t, $d);
15  $this->assertEquals(array('foo'), $transferException->getBatch());
16  $this->assertSame($t, $transferException->getTransferStrategy());
17  $this->assertSame($d, $transferException->getDivisorStrategy());
18  $this->assertSame($e, $transferException->getPrevious());
19  $this->assertEquals(array(1, 2), $transferException->getTransferredItems());
20  }
21 }
Guzzle\Tests\Common\Exception
Definition: BatchTransferExceptionTest.php:3
Guzzle\Tests\Common\Exception\BatchTransferExceptionTest
Definition: BatchTransferExceptionTest.php:7
Guzzle\Tests\GuzzleTestCase
Definition: GuzzleTestCase.php:22
Guzzle\Tests\Common\Exception\BatchTransferExceptionTest\testContainsBatch
testContainsBatch()
Definition: BatchTransferExceptionTest.php:9
Guzzle\Batch\Exception\BatchTransferException
Definition: BatchTransferException.php:12