1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 16:56:44 +02:00

[ticket/11768] Removed the cached renderer

We don't need to cache an instance of the renderer, we can just instantiate
it every time we need one.

PHPBB3-11768
This commit is contained in:
JoshyPHP
2015-03-03 02:14:09 +01:00
parent 6cb3fb6140
commit d37f2d10f0
4 changed files with 4 additions and 10 deletions

View File

@@ -34,7 +34,7 @@ class phpbb_textformatter_s9e_renderer_test extends phpbb_test_case
$cache->expects($this->once())
->method('get')
->with('_foo_renderer')
->will($this->returnValue(array('class' => 'renderer_foo', 'renderer' => serialize($mock))));
->will($this->returnValue(array('class' => 'renderer_foo')));
$factory = $this->getMockBuilder('phpbb\\textformatter\\s9e\\factory')
->disableOriginalConstructor()