Файл: vkolhoze.com/vendor/guzzle/guzzle/tests/Guzzle/Tests/Common/Exception/BatchTransferExceptionTest.php
Строк: 36
<?php
namespace GuzzleTestsCommonException;
use GuzzleBatchExceptionBatchTransferException;
class BatchTransferExceptionTest extends GuzzleTestsGuzzleTestCase
{
public function testContainsBatch()
{
$e = new Exception('Baz!');
$t = $this->getMock('GuzzleBatchBatchTransferInterface');
$d = $this->getMock('GuzzleBatchBatchDivisorInterface');
$transferException = new BatchTransferException(array('foo'), array(1, 2), $e, $t, $d);
$this->assertEquals(array('foo'), $transferException->getBatch());
$this->assertSame($t, $transferException->getTransferStrategy());
$this->assertSame($d, $transferException->getDivisorStrategy());
$this->assertSame($e, $transferException->getPrevious());
$this->assertEquals(array(1, 2), $transferException->getTransferredItems());
}
}