/** * Tests the Joomla\Application\AbstractApplication::setLogger and getLogger methods. * * @return void * * @covers Joomla\Application\AbstractApplication::setLogger * @covers Joomla\Application\AbstractApplication::getLogger * @since 1.0 */ public function testSetLogger() { $mockLogger = $this->getMock('Psr\\Log\\AbstractLogger', array('log'), array(), '', false); $this->assertSame($this->instance, $this->instance->setLogger($mockLogger), 'Checks chainging.'); $this->assertSame($mockLogger, $this->instance->getLogger(), 'Checks the get method.'); }