Skip to content

Commit

Permalink
Fix: Remove TestDouble\ProphecyCreated
Browse files Browse the repository at this point in the history
Fixes theseer#18

Co-authored-by: Andreas Möller <am@localheinz.com>
Co-authored-by: Arne Blankerts <Arne@Blankerts.de>
  • Loading branch information
localheinz and theseer committed Dec 24, 2020
1 parent b849b08 commit 47466ba
Show file tree
Hide file tree
Showing 9 changed files with 1 addition and 111 deletions.
3 changes: 1 addition & 2 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
</UndefinedInterfaceMethod>
</file>
<file src="src/Event/DispatchingEmitter.php">
<MissingThrowsDocblock occurrences="41">
<code>dispatch</code>
<MissingThrowsDocblock occurrences="40">
<code>dispatch</code>
<code>dispatch</code>
<code>dispatch</code>
Expand Down
5 changes: 0 additions & 5 deletions src/Event/DispatchingEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,6 @@ public function testDoublePartialMockCreated(): void
$this->dispatcher->dispatch(new TestDouble\PartialMockCreated($this->telemetryInfo()));
}

public function testDoubleProphecyCreated(): void
{
$this->dispatcher->dispatch(new TestDouble\ProphecyCreated($this->telemetryInfo()));
}

public function testDoubleTestProxyCreated(): void
{
$this->dispatcher->dispatch(new TestDouble\TestProxyCreated($this->telemetryInfo()));
Expand Down
2 changes: 0 additions & 2 deletions src/Event/Emitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ public function testDoubleMockForTraitCreated(): void;

public function testDoublePartialMockCreated(): void;

public function testDoubleProphecyCreated(): void;

public function testDoubleTestProxyCreated(): void;

public function testSuiteAfterClassFinished(): void;
Expand Down
1 change: 0 additions & 1 deletion src/Event/Registry.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ private static function registerDefaultTypes(): void
TestDouble\MockCreated::class,
TestDouble\MockForTraitCreated::class,
TestDouble\PartialMockCreated::class,
TestDouble\ProphecyCreated::class,
TestDouble\TestProxyCreated::class,
TestSuite\AfterClassFinished::class,
TestSuite\BeforeClassFinished::class,
Expand Down
28 changes: 0 additions & 28 deletions src/Event/TestDouble/ProphecyCreated.php

This file was deleted.

17 changes: 0 additions & 17 deletions src/Event/TestDouble/ProphecyCreatedSubscriber.php

This file was deleted.

4 changes: 0 additions & 4 deletions tests/_files/NullEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ public function testDoublePartialMockCreated(): void
{
}

public function testDoubleProphecyCreated(): void
{
}

public function testDoubleTestProxyCreated(): void
{
}
Expand Down
25 changes: 0 additions & 25 deletions tests/unit/Event/DispatchingEmitterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -769,31 +769,6 @@ public function testTestDoublePartialMockCreatedDispatchesTestDoublePartialMockC
$emitter->testDoublePartialMockCreated();
}

public function testTestDoubleProphecyCreatedDispatchesTestDoubleProphecyCreatedEvent(): void
{
$subscriber = $this->createMock(TestDouble\ProphecyCreatedSubscriber::class);

$subscriber
->expects($this->once())
->method('notify')
->with($this->isInstanceOf(TestDouble\ProphecyCreated::class));

$dispatcher = self::createDispatcherWithRegisteredSubscriber(
TestDouble\ProphecyCreatedSubscriber::class,
TestDouble\ProphecyCreated::class,
$subscriber
);

$telemetrySystem = self::createTelemetrySystem();

$emitter = new DispatchingEmitter(
$dispatcher,
$telemetrySystem
);

$emitter->testDoubleProphecyCreated();
}

public function testTestDoubleTestProxyCreatedDispatchesTestDoubleTestProxyCreatedEvent(): void
{
$subscriber = $this->createMock(TestDouble\TestProxyCreatedSubscriber::class);
Expand Down
27 changes: 0 additions & 27 deletions tests/unit/Event/TestDouble/ProphecyCreatedTest.php

This file was deleted.

0 comments on commit 47466ba

Please sign in to comment.