15 $this->getMock(
'Guzzle\Batch\BatchTransferInterface'),
16 $this->getMock(
'Guzzle\Batch\BatchDivisorInterface')
19 $decoratorA = $this->getMockBuilder(
'Guzzle\Batch\AbstractBatchDecorator')
20 ->setConstructorArgs(array($batch))
21 ->getMockForAbstractClass();
23 $decoratorB = $this->getMockBuilder(
'Guzzle\Batch\AbstractBatchDecorator')
24 ->setConstructorArgs(array($decoratorA))
25 ->getMockForAbstractClass();
27 $decoratorA->add(
'foo');
28 $this->assertFalse($decoratorB->isEmpty());
29 $this->assertFalse($batch->isEmpty());
30 $this->assertEquals(array($decoratorB, $decoratorA), $decoratorB->getDecorators());
31 $this->assertEquals(array(), $decoratorB->flush());