/** * Test configuration. * * @covers ::configure */ public function testConfigure() { $config = $this->getMock('Splot\\Framework\\Config\\Config'); $container = $this->getMock('Splot\\DependencyInjection\\ContainerInterface'); $container->expects($this->atLeastOnce())->method('get')->with($this->equalTo('config'))->will($this->returnValue($config)); $container->expects($this->any())->method('setParameter'); $app = new App(); $app->setContainer($container); $app->configure(); }