Skip to content

Commit

Permalink
Delete events that are no longer emitted
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Jun 5, 2024
1 parent 08afdd8 commit 90bbf2c
Show file tree
Hide file tree
Showing 17 changed files with 0 additions and 852 deletions.
5 changes: 0 additions & 5 deletions .psalm/baseline.xml
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,6 @@
<code><![CDATA[$calledMethods]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Event/Events/Test/TestDouble/MockObjectFromWsdlCreated.php">
<PropertyTypeCoercion>
<code><![CDATA[$methods]]></code>
</PropertyTypeCoercion>
</file>
<file src="src/Event/Events/Test/TestDouble/PartialMockObjectCreated.php">
<PropertyTypeCoercion>
<code><![CDATA[$methodNames]]></code>
Expand Down
72 changes: 0 additions & 72 deletions src/Event/Emitter/DispatchingEmitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
use PHPUnit\Event\TestSuite\Started as TestSuiteStarted;
use PHPUnit\Event\TestSuite\TestSuite;
use PHPUnit\TextUI\Configuration\Configuration;
use SebastianBergmann\Exporter\Exporter;

/**
* @internal This class is not covered by the backward compatibility promise for PHPUnit
Expand Down Expand Up @@ -499,60 +498,6 @@ public function testCreatedMockObjectForIntersectionOfInterfaces(array $interfac
);
}

/**
* @psalm-param trait-string $traitName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
*/
public function testCreatedMockObjectForTrait(string $traitName): void
{
$this->dispatcher->dispatch(
new Test\MockObjectForTraitCreated(
$this->telemetryInfo(),
$traitName,
),
);
}

/**
* @psalm-param class-string $className
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
*/
public function testCreatedMockObjectForAbstractClass(string $className): void
{
$this->dispatcher->dispatch(
new Test\MockObjectForAbstractClassCreated(
$this->telemetryInfo(),
$className,
),
);
}

/**
* @psalm-param class-string $originalClassName
* @psalm-param class-string $mockClassName
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
*/
public function testCreatedMockObjectFromWsdl(string $wsdlFile, string $originalClassName, string $mockClassName, array $methods, bool $callOriginalConstructor, array $options): void
{
$this->dispatcher->dispatch(
new Test\MockObjectFromWsdlCreated(
$this->telemetryInfo(),
$wsdlFile,
$originalClassName,
$mockClassName,
$methods,
$callOriginalConstructor,
$options,
),
);
}

/**
* @psalm-param class-string $className
*
Expand All @@ -570,23 +515,6 @@ public function testCreatedPartialMockObject(string $className, string ...$metho
);
}

/**
* @psalm-param class-string $className
*
* @throws InvalidArgumentException
* @throws UnknownEventTypeException
*/
public function testCreatedTestProxy(string $className, array $constructorArguments): void
{
$this->dispatcher->dispatch(
new Test\TestProxyCreated(
$this->telemetryInfo(),
$className,
(new Exporter)->export($constructorArguments),
),
);
}

/**
* @psalm-param class-string $className
*
Expand Down
21 changes: 0 additions & 21 deletions src/Event/Emitter/Emitter.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,32 +115,11 @@ public function testCreatedMockObject(string $className): void;
*/
public function testCreatedMockObjectForIntersectionOfInterfaces(array $interfaces): void;

/**
* @psalm-param trait-string $traitName
*/
public function testCreatedMockObjectForTrait(string $traitName): void;

/**
* @psalm-param class-string $className
*/
public function testCreatedMockObjectForAbstractClass(string $className): void;

/**
* @psalm-param class-string $originalClassName
* @psalm-param class-string $mockClassName
*/
public function testCreatedMockObjectFromWsdl(string $wsdlFile, string $originalClassName, string $mockClassName, array $methods, bool $callOriginalConstructor, array $options): void;

/**
* @psalm-param class-string $className
*/
public function testCreatedPartialMockObject(string $className, string ...$methodNames): void;

/**
* @psalm-param class-string $className
*/
public function testCreatedTestProxy(string $className, array $constructorArguments): void;

/**
* @psalm-param class-string $className
*/
Expand Down

This file was deleted.

This file was deleted.

59 changes: 0 additions & 59 deletions src/Event/Events/Test/TestDouble/MockObjectForTraitCreated.php

This file was deleted.

This file was deleted.

Loading

0 comments on commit 90bbf2c

Please sign in to comment.