/** @test **/ public function it_fixes_the_logger_context_automatically() { $logger = $this->getMock('Logger', ['debug']); // just expect that a debug message is spit out $logger->expects($this->atLeastOnce())->method('debug')->with($this->matchesRegularExpression('/logger/')); $c = new Configuration(); $c->setLoginUrl('http://www.reso.org/login'); $s = new Session($c); $s->setLogger($logger); }