aboutsummaryrefslogtreecommitdiffstats
path: root/tests/event
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2014-04-18 12:50:23 +0200
committerJoas Schilling <nickvergessen@gmx.de>2014-04-18 12:57:23 +0200
commit6da52acb3ce849b25adbf0ef9533a0acb7286ddf (patch)
tree18d6caa22c27884bf776896d68c24b18b698cb83 /tests/event
parent3352d9fd344c14172bd690f20ee50a912032db7f (diff)
downloadforums-6da52acb3ce849b25adbf0ef9533a0acb7286ddf.tar
forums-6da52acb3ce849b25adbf0ef9533a0acb7286ddf.tar.gz
forums-6da52acb3ce849b25adbf0ef9533a0acb7286ddf.tar.bz2
forums-6da52acb3ce849b25adbf0ef9533a0acb7286ddf.tar.xz
forums-6da52acb3ce849b25adbf0ef9533a0acb7286ddf.zip
[ticket/12273] Rename exporter to php_exporter
PHPBB3-12273
Diffstat (limited to 'tests/event')
-rw-r--r--tests/event/php_exporter_test.php (renamed from tests/event/exporter_test.php)12
1 files changed, 5 insertions, 7 deletions
diff --git a/tests/event/exporter_test.php b/tests/event/php_exporter_test.php
index 1608964b42..2a23d1a6c1 100644
--- a/tests/event/exporter_test.php
+++ b/tests/event/php_exporter_test.php
@@ -7,15 +7,15 @@
*
*/
-class phpbb_event_exporter_test extends phpbb_test_case
+class phpbb_event_php_exporter_test extends phpbb_test_case
{
- /** @var \event_exporter */
+ /** @var \phpbb\event\php_exporter */
protected $exporter;
public function setUp()
{
parent::setUp();
- $this->exporter = new \phpbb\event\exporter(dirname(__FILE__) . '/fixtures/');
+ $this->exporter = new \phpbb\event\php_exporter(dirname(__FILE__) . '/fixtures/');
}
static public function crawl_php_file_data()
@@ -70,9 +70,7 @@ class phpbb_event_exporter_test extends phpbb_test_case
public function test_crawl_php_file($file, $expected)
{
$this->exporter->crawl_php_file($file);
- $events = $this->exporter->get_events();
- $this->assertArrayHasKey('php', $events);
- $this->assertEquals($expected, $events['php']);
+ $this->assertEquals($expected, $this->exporter->get_events());
}
static public function crawl_php_file_throws_data()
@@ -667,7 +665,7 @@ class phpbb_event_exporter_test extends phpbb_test_case
public function test_crawl_phpbb_directory_php()
{
global $phpbb_root_path;
- $exporter = new \phpbb\event\exporter($phpbb_root_path);
+ $exporter = new \phpbb\event\php_exporter($phpbb_root_path);
$this->assertGreaterThan(0, $exporter->crawl_phpbb_directory_php());
}
}