aboutsummaryrefslogtreecommitdiffstats
path: root/tests/text_formatter/s9e/factory_test.php
diff options
context:
space:
mode:
authorJoshyPHP <s9e.dev@gmail.com>2015-02-15 03:08:36 +0100
committerJoshyPHP <s9e.dev@gmail.com>2015-04-02 19:16:01 +0200
commit6bd86a8e8a7c8e2ccf90d02343132c085978cd44 (patch)
tree630068c062790c451143b418acccc4ea7f6446b9 /tests/text_formatter/s9e/factory_test.php
parentf6e3e41717e71fb43ea63785cfe7980e33be3fbf (diff)
downloadforums-6bd86a8e8a7c8e2ccf90d02343132c085978cd44.tar
forums-6bd86a8e8a7c8e2ccf90d02343132c085978cd44.tar.gz
forums-6bd86a8e8a7c8e2ccf90d02343132c085978cd44.tar.bz2
forums-6bd86a8e8a7c8e2ccf90d02343132c085978cd44.tar.xz
forums-6bd86a8e8a7c8e2ccf90d02343132c085978cd44.zip
[ticket/11768] Updated phpbb\textformatter\s9e\factory::regenerate()
Returns an associative array rather than a numerically-indexed array. Feels cleaner and more extensible. PHPBB3-11768
Diffstat (limited to 'tests/text_formatter/s9e/factory_test.php')
-rw-r--r--tests/text_formatter/s9e/factory_test.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/text_formatter/s9e/factory_test.php b/tests/text_formatter/s9e/factory_test.php
index 2ea4b3031b..9542da8d9a 100644
--- a/tests/text_formatter/s9e/factory_test.php
+++ b/tests/text_formatter/s9e/factory_test.php
@@ -84,7 +84,7 @@ class phpbb_textformatter_s9e_factory_test extends phpbb_database_test_case
public function test_regenerate()
{
- list($parser, $renderer) = $this->get_factory()->regenerate();
+ extract($this->get_factory()->regenerate());
$this->assertInstanceOf('s9e\\TextFormatter\\Parser', $parser);
$this->assertInstanceOf('s9e\\TextFormatter\\Renderer', $renderer);
@@ -113,7 +113,7 @@ class phpbb_textformatter_s9e_factory_test extends phpbb_database_test_case
touch($old_file);
// Create a current renderer
- list($parser, $renderer) = $factory->regenerate();
+ extract($factory->regenerate());
$new_file = $this->get_cache_dir() . get_class($renderer) . '.php';
// Tidy the cache