Skip to content

Commit

Permalink
Merge pull request #208 from odolbeau/deprecate-nr-processor
Browse files Browse the repository at this point in the history
Deprecate NewRelicProcessor
  • Loading branch information
Olivier Dolbeau committed Jan 23, 2020
2 parents 9671799 + 9ac7811 commit ebe4be0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Swarrot/Processor/NewRelic/NewRelicProcessor.php
Expand Up @@ -22,6 +22,8 @@ class NewRelicProcessor implements ConfigurableInterface

public function __construct(ProcessorInterface $processor)
{
@trigger_error(sprintf('"%s" have been deprecated since Swarrot 3.7', __CLASS__), E_USER_DEPRECATED);

$this->extensionLoaded = extension_loaded('newrelic');
$this->processor = $processor;

Expand Down
4 changes: 4 additions & 0 deletions tests/Swarrot/Processor/NewRelic/NewRelicProcessorTest.php
Expand Up @@ -9,6 +9,10 @@

class NewRelicProcessorTest extends TestCase
{
/**
* @group legacy
* @expectedDeprecation "Swarrot\Processor\NewRelic\NewRelicProcessor" have been deprecated since Swarrot 3.7
*/
public function testOptions()
{
$processor = new NewRelicProcessor(
Expand Down

0 comments on commit ebe4be0

Please sign in to comment.