Skip to content

Commit 15da02d

Browse files
committed
remove not relevant tests.
1 parent 2fdfc82 commit 15da02d

File tree

1 file changed

+0
-47
lines changed

1 file changed

+0
-47
lines changed

src/PsrProducerSpec.php

Lines changed: 0 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -14,53 +14,6 @@ public function testShouldImplementPsrContextInterface()
1414
$this->assertInstanceOf(PsrProducer::class, $this->createProducer());
1515
}
1616

17-
public function testShouldReturnNullIfCompletionListenerWasNotPreviouslySet()
18-
{
19-
$producer = $this->createProducer();
20-
21-
$this->assertNull($producer->getCompletionListener());
22-
}
23-
24-
public function testShouldReturnPreviouslySetCompletionListener()
25-
{
26-
$completionListener = $this->createMock(CompletionListener::class);
27-
28-
$producer = $this->createProducer();
29-
$producer->setCompletionListener($completionListener);
30-
31-
$this->assertSame($completionListener, $producer->getCompletionListener());
32-
}
33-
34-
public function testShouldAllowResetPreviouslySetCompletionListener()
35-
{
36-
$producer = $this->createProducer();
37-
38-
$producer->setCompletionListener($this->createMock(CompletionListener::class));
39-
40-
// guard
41-
$this->assertNotNull($producer->getCompletionListener());
42-
43-
$producer->setCompletionListener(null);
44-
45-
$this->assertNull($producer->getCompletionListener());
46-
}
47-
48-
public function testShouldReturnDefaultDeliveryDelayIfNotPreviouslySet()
49-
{
50-
$producer = $this->createProducer();
51-
52-
$this->assertSame(PsrMessage::DEFAULT_DELIVERY_DELAY, $producer->getDeliveryDelay());
53-
}
54-
55-
public function testShouldReturnPreviouslySetDeliveryDelay()
56-
{
57-
$producer = $this->createProducer();
58-
59-
$producer->setDeliveryDelay(123.45);
60-
61-
$this->assertSame(123.45, $producer->getDeliveryDelay());
62-
}
63-
6417
/**
6518
* @return PsrProducer
6619
*/

0 commit comments

Comments
 (0)