diff --git a/src/Analyser/Analyser.php b/src/Analyser/Analyser.php index 800ea38..d0f63b1 100644 --- a/src/Analyser/Analyser.php +++ b/src/Analyser/Analyser.php @@ -1,13 +1,13 @@ setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')); + $detective->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')); $detective->setPossibleLogClasses($possibleLogClasses); return $detective; } diff --git a/test/tests/Detective/LinePatternDetectorTest.php b/test/tests/Detective/LinePatternDetectorTest.php index 24456b3..6f49edf 100644 --- a/test/tests/Detective/LinePatternDetectorTest.php +++ b/test/tests/Detective/LinePatternDetectorTest.php @@ -1,8 +1,8 @@ assertEquals(5 / 7, (new LinePatternDetector()) - ->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) + ->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) ->setPattern('/information/') ->detect() ); $this->assertFalse((new LinePatternDetector()) - ->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) + ->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) ->setPattern('/missing/') ->detect() ); $this->assertEquals(1, (new LinePatternDetector()) - ->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) + ->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) ->setPattern('/This/') ->detect() ); diff --git a/test/tests/Detective/MultiPatternDetectorTest.php b/test/tests/Detective/MultiPatternDetectorTest.php index 5d240a7..6d950ed 100644 --- a/test/tests/Detective/MultiPatternDetectorTest.php +++ b/test/tests/Detective/MultiPatternDetectorTest.php @@ -1,9 +1,9 @@ assertEquals(1, (new WeightedSinglePatternDetector()) - ->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) + ->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) ->setPattern('/This/') ->setWeight(1) ->detect() ); $this->assertEquals(0.5, (new WeightedSinglePatternDetector()) - ->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) + ->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) ->setPattern('/This/') ->setWeight(0.5) ->detect() ); $this->assertEquals(0, (new WeightedSinglePatternDetector()) - ->setLogFile(new \Aternos\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) + ->setLogFile(new \IndifferentKetchup\Codex\Log\File\PathLogFile(__DIR__ . '/../../data/simple.log')) ->setPattern('/This/') ->setWeight(0) ->detect() diff --git a/test/tests/Log/EntryTest.php b/test/tests/Log/EntryTest.php index 34481d5..7dc6ede 100644 --- a/test/tests/Log/EntryTest.php +++ b/test/tests/Log/EntryTest.php @@ -1,10 +1,10 @@