diff --git a/Tests/NullObject/LoggerTest.php b/Tests/NullObject/LoggerTest.php new file mode 100644 index 0000000..36edb6b --- /dev/null +++ b/Tests/NullObject/LoggerTest.php @@ -0,0 +1,35 @@ +expectOutputString(null); // no output + $service->doSomething(); + } + + public function testStandardLogger() + { + $service = new Service(new PrintLogger()); + $this->expectOutputString('We are in DesignPatterns\NullObject\Service::doSomething'); + $service->doSomething(); + } + +} \ No newline at end of file