[ticket/13803] Hyphenated class names

PHPBB3-13803
This commit is contained in:
JoshyPHP 2015-05-01 05:32:48 +02:00
parent de52580a78
commit e11ae7e9cd
7 changed files with 16 additions and 16 deletions

View file

@ -1,62 +1,62 @@
services:
text_reparser.admin_contact_info:
class: phpbb\textreparser\admincontactinfo
class: phpbb\textreparser\admin_contact_info
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.forum_description:
class: phpbb\textreparser\forumdescription
class: phpbb\textreparser\forum_description
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.forum_rules:
class: phpbb\textreparser\forumrules
class: phpbb\textreparser\forum_rules
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.group_description:
class: phpbb\textreparser\groupdescription
class: phpbb\textreparser\group_description
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.pm_text:
class: phpbb\textreparser\pmtext
class: phpbb\textreparser\pm_text
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.poll_option:
class: phpbb\textreparser\polloption
class: phpbb\textreparser\poll_option
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.poll_title:
class: phpbb\textreparser\polltitle
class: phpbb\textreparser\poll_title
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.post_text:
class: phpbb\textreparser\posttext
class: phpbb\textreparser\post_text
arguments:
- @dbal.conn
tags:
- { name: text_reparser.plugin }
text_reparser.user_signature:
class: phpbb\textreparser\usersignature
class: phpbb\textreparser\user_signature
arguments:
- @dbal.conn
tags:

View file

@ -13,7 +13,7 @@
namespace phpbb\textreparser;
class forumdescription extends base
class forum_description extends base
{
/**
* {@inheritdoc}

View file

@ -13,7 +13,7 @@
namespace phpbb\textreparser;
class forumrules extends base
class forum_rules extends base
{
/**
* {@inheritdoc}

View file

@ -13,7 +13,7 @@
namespace phpbb\textreparser;
class groupdescription extends base
class group_description extends base
{
/**
* {@inheritdoc}

View file

@ -13,7 +13,7 @@
namespace phpbb\textreparser;
class pmtext extends base
class pm_text extends base
{
/**
* {@inheritdoc}

View file

@ -13,7 +13,7 @@
namespace phpbb\textreparser;
class posttext extends base
class post_text extends base
{
/**
* {@inheritdoc}

View file

@ -14,7 +14,7 @@ require_once __DIR__ . '/../../phpBB/includes/functions.php';
require_once __DIR__ . '/../../phpBB/includes/functions_content.php';
require_once __DIR__ . '/../test_framework/phpbb_database_test_case.php';
class phpbb_textreparser_posttext_test extends phpbb_database_test_case
class phpbb_textreparser_post_text_test extends phpbb_database_test_case
{
public function setUp()
{
@ -38,7 +38,7 @@ class phpbb_textreparser_posttext_test extends phpbb_database_test_case
public function testReparse($min_id, $max_id, $expected)
{
$db = $this->new_dbal();
$reparser = new \phpbb\textreparser\posttext($db);
$reparser = new \phpbb\textreparser\post_text($db);
$reparser->reparse_range($min_id, $max_id);
$sql = 'SELECT post_id, post_text
FROM ' . POSTS_TABLE . "