mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-11 13:58:54 +00:00
[ticket/10678] More formatting and docblocks
PHPBB3-10678
This commit is contained in:
parent
0a596c4b8c
commit
9bb2785da0
2 changed files with 12 additions and 4 deletions
|
@ -129,6 +129,14 @@ abstract class phpbb_database_test_case extends PHPUnit_Extensions_Database_Test
|
|||
return new phpbb_database_test_connection_manager($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Converts a match in the middle of a string to uppercase.
|
||||
* This is necessary for tranforming the fixture information for Firebird tests
|
||||
*
|
||||
* @param $matches The array of matches from a regular expression
|
||||
*
|
||||
* @return string The string with the specified match converted to uppercase
|
||||
*/
|
||||
public static function to_upper($matches)
|
||||
{
|
||||
return $matches[1] . strtoupper($matches[2]) . $matches[3];
|
||||
|
|
Loading…
Add table
Reference in a new issue