Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
f8f0ff54
Commit
f8f0ff54
authored
Sep 07, 2014
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
moved formatter to i18n namespace
parent
065db64d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
6 deletions
+9
-6
Formatter.php
framework/i18n/Formatter.php
+4
-1
FormatterTest.php
tests/unit/framework/i18n/FormatterTest.php
+5
-5
No files found.
framework/
base
/Formatter.php
→
framework/
i18n
/Formatter.php
View file @
f8f0ff54
...
@@ -5,12 +5,15 @@
...
@@ -5,12 +5,15 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
yii\
base
;
namespace
yii\
i18n
;
use
Yii
;
use
Yii
;
use
DateTime
;
use
DateTime
;
use
IntlDateFormatter
;
use
IntlDateFormatter
;
use
NumberFormatter
;
use
NumberFormatter
;
use
yii\base\Component
;
use
yii\base\InvalidConfigException
;
use
yii\base\InvalidParamException
;
use
yii\helpers\HtmlPurifier
;
use
yii\helpers\HtmlPurifier
;
use
yii\helpers\Html
;
use
yii\helpers\Html
;
...
...
tests/unit/framework/
base
/FormatterTest.php
→
tests/unit/framework/
i18n
/FormatterTest.php
View file @
f8f0ff54
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
* @license http://www.yiiframework.com/license/
* @license http://www.yiiframework.com/license/
*/
*/
namespace
yii\
base
;
namespace
yii\
i18n
;
// override information about intl
// override information about intl
use
yiiunit\framework\
base
\FormatterTest
;
use
yiiunit\framework\
i18n
\FormatterTest
;
function
extension_loaded
(
$name
)
function
extension_loaded
(
$name
)
{
{
...
@@ -18,15 +18,15 @@ function extension_loaded($name)
...
@@ -18,15 +18,15 @@ function extension_loaded($name)
return
\extension_loaded
(
$name
);
return
\extension_loaded
(
$name
);
}
}
namespace
yiiunit\framework\
base
;
namespace
yiiunit\framework\
i18n
;
use
yii\
base
\Formatter
;
use
yii\
i18n
\Formatter
;
use
yiiunit\TestCase
;
use
yiiunit\TestCase
;
use
DateTime
;
use
DateTime
;
use
DateInterval
;
use
DateInterval
;
/**
/**
* @group
base
* @group
i18n
*/
*/
class
FormatterTest
extends
TestCase
class
FormatterTest
extends
TestCase
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment