Fix minor typos
This commit is contained in:
parent
a0496bd748
commit
bed9cd9176
@ -209,7 +209,7 @@ abstract class AbstractDescriptorTest extends TestCase
|
|||||||
}
|
}
|
||||||
|
|
||||||
/** @dataProvider getClassDescriptionTestData */
|
/** @dataProvider getClassDescriptionTestData */
|
||||||
public function testGetClassDecription($object, $expectedDescription)
|
public function testGetClassDescription($object, $expectedDescription)
|
||||||
{
|
{
|
||||||
$this->assertEquals($expectedDescription, $this->getDescriptor()->getClassDescription($object));
|
$this->assertEquals($expectedDescription, $this->getDescriptor()->getClassDescription($object));
|
||||||
}
|
}
|
||||||
|
@ -1018,14 +1018,14 @@ And, as in uffish thought he stood, The Jabberwock, with eyes of flame, Came whi
|
|||||||
$bar->setRedrawFrequency(4); // disable step based redraws
|
$bar->setRedrawFrequency(4); // disable step based redraws
|
||||||
$bar->start();
|
$bar->start();
|
||||||
|
|
||||||
$bar->setProgress(1); // No treshold hit, no redraw
|
$bar->setProgress(1); // No threshold hit, no redraw
|
||||||
$bar->maxSecondsBetweenRedraws(2);
|
$bar->maxSecondsBetweenRedraws(2);
|
||||||
sleep(1);
|
sleep(1);
|
||||||
$bar->setProgress(2); // Still no redraw because it takes 2 seconds for a redraw
|
$bar->setProgress(2); // Still no redraw because it takes 2 seconds for a redraw
|
||||||
sleep(1);
|
sleep(1);
|
||||||
$bar->setProgress(3); // 1+1 = 2 -> redraw finally
|
$bar->setProgress(3); // 1+1 = 2 -> redraw finally
|
||||||
$bar->setProgress(4); // step based redraw freq hit, redraw even without sleep
|
$bar->setProgress(4); // step based redraw freq hit, redraw even without sleep
|
||||||
$bar->setProgress(5); // No treshold hit, no redraw
|
$bar->setProgress(5); // No threshold hit, no redraw
|
||||||
$bar->maxSecondsBetweenRedraws(3);
|
$bar->maxSecondsBetweenRedraws(3);
|
||||||
sleep(2);
|
sleep(2);
|
||||||
$bar->setProgress(6); // No redraw even though 2 seconds passed. Throttling has priority
|
$bar->setProgress(6); // No redraw even though 2 seconds passed. Throttling has priority
|
||||||
@ -1056,7 +1056,7 @@ And, as in uffish thought he stood, The Jabberwock, with eyes of flame, Came whi
|
|||||||
$bar->setProgress(3); // 1 second passed but we changed threshold, should not draw
|
$bar->setProgress(3); // 1 second passed but we changed threshold, should not draw
|
||||||
sleep(1);
|
sleep(1);
|
||||||
$bar->setProgress(4); // 1+1 seconds = 2 seconds passed which conforms threshold, draw
|
$bar->setProgress(4); // 1+1 seconds = 2 seconds passed which conforms threshold, draw
|
||||||
$bar->setProgress(5); // No treshold hit, no redraw
|
$bar->setProgress(5); // No threshold hit, no redraw
|
||||||
|
|
||||||
rewind($output->getStream());
|
rewind($output->getStream());
|
||||||
$this->assertEquals(
|
$this->assertEquals(
|
||||||
|
@ -99,12 +99,12 @@ class SendFailedMessageForRetryListenerTest extends TestCase
|
|||||||
$senderLocator = $this->createMock(ContainerInterface::class);
|
$senderLocator = $this->createMock(ContainerInterface::class);
|
||||||
$senderLocator->expects($this->once())->method('has')->willReturn(true);
|
$senderLocator->expects($this->once())->method('has')->willReturn(true);
|
||||||
$senderLocator->expects($this->once())->method('get')->willReturn($sender);
|
$senderLocator->expects($this->once())->method('get')->willReturn($sender);
|
||||||
$retryStategy = $this->createMock(RetryStrategyInterface::class);
|
$retryStrategy = $this->createMock(RetryStrategyInterface::class);
|
||||||
$retryStategy->expects($this->once())->method('isRetryable')->willReturn(true);
|
$retryStrategy->expects($this->once())->method('isRetryable')->willReturn(true);
|
||||||
$retryStategy->expects($this->once())->method('getWaitingTime')->willReturn(1000);
|
$retryStrategy->expects($this->once())->method('getWaitingTime')->willReturn(1000);
|
||||||
$retryStrategyLocator = $this->createMock(ContainerInterface::class);
|
$retryStrategyLocator = $this->createMock(ContainerInterface::class);
|
||||||
$retryStrategyLocator->expects($this->once())->method('has')->willReturn(true);
|
$retryStrategyLocator->expects($this->once())->method('has')->willReturn(true);
|
||||||
$retryStrategyLocator->expects($this->once())->method('get')->willReturn($retryStategy);
|
$retryStrategyLocator->expects($this->once())->method('get')->willReturn($retryStrategy);
|
||||||
|
|
||||||
$listener = new SendFailedMessageForRetryListener($senderLocator, $retryStrategyLocator);
|
$listener = new SendFailedMessageForRetryListener($senderLocator, $retryStrategyLocator);
|
||||||
|
|
||||||
|
@ -480,7 +480,7 @@ class ConnectionTest extends TestCase
|
|||||||
$connection->publish('body', ['Foo' => 'X'], 0, new AmqpStamp(null, \AMQP_NOPARAM, ['headers' => ['Bar' => 'Y']]));
|
$connection->publish('body', ['Foo' => 'X'], 0, new AmqpStamp(null, \AMQP_NOPARAM, ['headers' => ['Bar' => 'Y']]));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testAmqpStampDelireryModeIsUsed()
|
public function testAmqpStampDeliveryModeIsUsed()
|
||||||
{
|
{
|
||||||
$factory = new TestAmqpFactory(
|
$factory = new TestAmqpFactory(
|
||||||
$this->createMock(\AMQPConnection::class),
|
$this->createMock(\AMQPConnection::class),
|
||||||
|
@ -1905,7 +1905,7 @@ class RecursiveValidatorTest extends TestCase
|
|||||||
$this->assertSame($constraint, $violations[0]->getConstraint());
|
$this->assertSame($constraint, $violations[0]->getConstraint());
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testCollectionConstraitViolationHasCorrectContext()
|
public function testCollectionConstraintViolationHasCorrectContext()
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'foo' => 'fooValue',
|
'foo' => 'fooValue',
|
||||||
|
Reference in New Issue
Block a user