28 Commits

Author SHA1 Message Date
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
c43a168a31 Fix #18712: Added $scheme option to yii\i18n\Formatter::asUrl() 2021-07-02 11:26:24 +03:00
215862a91e Don't test FormatterDate DATE_ATOM with PHP 5.5 (#17879) 2020-02-19 23:22:11 +03:00
93073c9c41 Execute FormatterDate intl test to PHP 5.5+ only (#17876) 2020-02-19 20:17:02 +03:00
22d30f1999 Fixes #15286: Fixed incorrect formatting of time with timezone information 2019-01-09 09:59:56 -05:00
c78201899b Fixes #13720: Improve yii\helpers\FormatConverter::convertDatePhpToIcu() to handle escaped chars correctly 2017-10-08 18:07:26 +02:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
0c0942d6e2 Enable phpdoc_add_missing_param_annotation rule in php-cs-fixer config. (#14681) [skip ci] 2017-08-21 01:57:23 +03:00
0c0cc1074d fix current time in formatter (#14203)
* fix current time in formatter

* expand testAsDatetime

* Update FormatterDateTest.php

* Update CHANGELOG.md
2017-08-03 10:20:37 +02:00
ba0ab403b5 Added php-cs-fixer coding standards validation to Travis CI (#14100)
* php-cs-fixer: PSR2 rule.

* php-cs-fixer: PSR2 rule - fix views.

* Travis setup refactoring.

* Add php-cs-fixer to travis cs tests.

* Fix tests on hhvm-3.12

* improve travis config

* composer update

* revert composer update

* improve travis config

* Fix CS.

* Extract config to separate classes.

* Extract config to separate classes.

* Add file header.

* Force short array syntax.

* binary_operator_spaces fixer

* Fix broken tests

* cast_spaces fixer

* concat_space fixer

* dir_constant fixer

* ereg_to_preg fixer

* function_typehint_space fixer

* hash_to_slash_comment fixer

* is_null fixer

* linebreak_after_opening_tag fixer

* lowercase_cast fixer

* magic_constant_casing fixer

* modernize_types_casting fixer

* native_function_casing fixer

* new_with_braces fixer

* no_alias_functions fixer

* no_blank_lines_after_class_opening fixer

* no_blank_lines_after_phpdoc fixer

* no_empty_comment fixer

* no_empty_phpdoc fixer

* no_empty_statement fixer

* no_extra_consecutive_blank_lines fixer

* no_leading_import_slash fixer

* no_leading_namespace_whitespace fixer

* no_mixed_echo_print fixer

* no_multiline_whitespace_around_double_arrow fixer

* no_multiline_whitespace_before_semicolons fixer

* no_php4_constructor fixer

* no_short_bool_cast fixer

* no_singleline_whitespace_before_semicolons fixer

* no_spaces_around_offset fixer

* no_trailing_comma_in_list_call fixer

* no_trailing_comma_in_singleline_array fixer

* no_unneeded_control_parentheses fixer

* no_unused_imports fixer

* no_useless_return fixer

* no_whitespace_before_comma_in_array fixer

* no_whitespace_in_blank_line fixer

* not_operator_with_successor_space fixer

* object_operator_without_whitespace fixer

* ordered_imports fixer

* php_unit_construct fixer

* php_unit_dedicate_assert fixer

* php_unit_fqcn_annotation fixer

* phpdoc_indent fixer

* phpdoc_no_access fixer

* phpdoc_no_empty_return fixer

* phpdoc_no_package fixer

* phpdoc_no_useless_inheritdoc fixer

* Fix broken tests

* phpdoc_return_self_reference fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_single_line_var_spacing fixer

* phpdoc_to_comment fixer

* phpdoc_trim fixer

* phpdoc_var_without_name fixer

* psr4 fixer

* self_accessor fixer

* short_scalar_cast fixer

* single_blank_line_before_namespace fixer

* single_quote fixer

* standardize_not_equals fixer

* ternary_operator_spaces fixer

* trailing_comma_in_multiline_array fixer

* trim_array_spaces fixer

* protected_to_private fixer

* unary_operator_spaces fixer

* whitespace_after_comma_in_array fixer

* `parent::setRules()` -> `$this->setRules()`

* blank_line_after_opening_tag fixer

* Update finder config.

* Revert changes for YiiRequirementChecker.

* Fix array formatting.

* Add missing import.

* Fix CS for new code merged from master.

* Fix some indentation issues.
2017-06-12 12:25:45 +03:00
04a14efd3f compatibility with PHPUnit 6.x fix 2017-04-13 15:29:10 +03:00
dee88787fc compatibility with PHPUnit 6.x added 2017-04-13 14:49:43 +03:00
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00
22972b86db update date formatter test for intl
some tests where not run with intl extension enabled.
2017-02-16 16:20:07 +01:00
54278fc842 asTime fixed for time-only values
close #13348
fixes #13343
2017-02-16 16:07:52 +01:00
07d3217706 added test for negative date formatter values
test for #9628
2016-07-04 12:42:09 +02:00
c7f365910d Fixed handling of intervals of 0 seconds in yii\i18n\Formatter::asDuration().
Added unit tests for handling 0 second intervals and numeric values for yii\i18n\Formatter::asDuration().

Closes #11038
2016-03-08 15:12:08 +02:00
cdb7d84fea added support for non-gregorian calendar to formatter
fixes #8687
close #10517
2016-01-02 19:42:35 +01:00
a6e1ba2cf6 Fixed mb_ functions calls to use UTF-8 or app charset 2015-11-17 09:02:22 +02:00
c1b0d1263b FromatterDateTest - fixed tests on PHP7 2015-11-10 14:43:56 +02:00
b5d95f845e Formatter::asDuration() PHPDoc and PHPUnit test enhanced 2015-10-26 23:57:05 +02:00
928a02c3bc Added Formatter::asDuration() method 2015-10-26 20:48:39 +02:00
a73ce736ee improved unit test for date formatter 2015-05-18 02:15:59 +02:00
3c2bd76236 allow negative dates for date formatter
fixes #8451
2015-05-18 02:14:14 +02:00
c1fcd2956b added unit test for issue #8217
close #8217
2015-05-17 00:50:29 +02:00
d60445c066 Add DateValidator::$timestampAttributeFormat
includes refactoring of the formatting method to fix some major timezone issues.

fixes #5053
close #6820
2015-05-01 18:53:28 +02:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00