Skip to content

Commit

Permalink
Default MDC adapter is BasicMDCAdapter
Browse files Browse the repository at this point in the history
  • Loading branch information
Janos Szurovecz committed Jan 4, 2015
1 parent 86a88c0 commit 5213de5
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 71 deletions.
4 changes: 2 additions & 2 deletions src/lf4php/MDC.php
Expand Up @@ -24,7 +24,7 @@
namespace lf4php;

use InvalidArgumentException;
use lf4php\helpers\NOPMDCAdapter;
use lf4php\helpers\BasicMDCAdapter;
use lf4php\impl\StaticMDCBinder;
use lf4php\spi\MDCAdapter;

Expand All @@ -47,7 +47,7 @@ public static function init()
if (class_exists('lf4php\impl\StaticMDCBinder')) {
self::$mdcAdapter = StaticMDCBinder::$SINGLETON->getMDCA();
} else {
self::$mdcAdapter = new NOPMDCAdapter();
self::$mdcAdapter = new BasicMDCAdapter();
}
}

Expand Down
67 changes: 0 additions & 67 deletions src/lf4php/helpers/NOPMDCAdapter.php

This file was deleted.

4 changes: 2 additions & 2 deletions tests/lf4php/MDCTest.php
Expand Up @@ -50,11 +50,11 @@ protected function setUp()
/**
* @test
*/
public function shouldReturnNOPMDCAdapter()
public function shouldReturnBasicMDCAdapter()
{
MDCChild::reset();
MDC::init();
self::assertInstanceOf('\lf4php\helpers\NOPMDCAdapter', MDC::getMDCAdapter());
self::assertInstanceOf('\lf4php\helpers\BasicMDCAdapter', MDC::getMDCAdapter());
}

/**
Expand Down

0 comments on commit 5213de5

Please sign in to comment.