25 Commits

Author SHA1 Message Date
12a2030fbd Fix intl differences in tests (#19679) 2022-11-16 01:37:41 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
9c4c36ee72 Fix #19467: Revert changes in Inflector::camel2words() (#19495)
* Fix #19467: Revert changes in `Inflector::camel2words()` introduced in #19204

* Add UPGRADE note
2022-07-30 14:32:29 +02:00
cf1600411c Fix #19204: Support numbers in Inflector::camel2words 2022-02-03 17:23:47 +03:00
63e93ba243 Fix #18832 - Inflector::camel2words() adding extra spaces (#18833) 2021-08-14 10:43:23 +02:00
c9889cfd2f Update InflectorTest.php 2021-05-07 01:35:40 +03:00
9c8f653554 Added 'software' and 'hardware' string to BaseInflector $specials. 2021-05-03 14:34:22 +08:00
c901608af7 Fix #17863: \yii\helpers\BaseInflector::slug() doesn't work with an empty string as a replacement argument 2020-02-19 03:26:33 +03:00
62acca9f3d Fix #17740: yii\helpers\BaseInflector::slug() doesn't replace multiple replacement string occurrences to single one 2019-12-17 15:19:15 +03:00
1cc83f02f5 Fixes #17150: Fixed yii\helpers\BaseInflector::camel2words() splitting ALLCAPS words on each letter 2019-02-22 23:41:14 +03:00
de5b903806 Fixed regression in #16817 (#17056) 2019-01-21 15:20:43 +03:00
1342eb718b Fixes #15204: yii\helpers\BaseInflector::slug() is not removing substrings matching provided replacement from given string anymore 2018-10-23 22:33:18 +03:00
3d96a45f6b Fixed BC breaking change in Inflector
Fixes #16239
2018-05-08 16:39:55 +03:00
629a33fd0e Made Inclector unicode-safe 2018-05-01 12:32:16 +03:00
b9aa0001b6 Fixed yii\helpers\Inflector::camel2words() to work with UTF-8 2018-04-29 13:13:56 +03: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
d786b78f25 Helper independent (#14050)
* Made sure most helpers are independent of Yii::$app

* Made sure most validators are independent of Yii::$app
2017-04-26 09:49:44 +02:00
cc44339a45 Improved intl tests to tolerate ICU data differences
- Added new assertion.
- Adjusted tests not to rely on intl version allowing multiple valid variants for Russian and Ukrainian currencies and transliteration.
2017-03-18 10:53:43 +03:00
18b3fa10c5 Fixed ICU tests take varieties of data into account (#13751) 2017-03-14 09:47:56 +03:00
af612f47d1 Addded pluralization and singularization exception for currency 2017-02-28 15:59:10 +02:00
062895111f fixed php 7.1 test breaks that depend on ICU data version 2016-07-04 11:52:33 +02:00
2f9395bbd6 fix #11299 2016-04-07 10:52:43 +03:00
499ee6de9e Added CH test sentence to InflectorTest 2016-03-31 11:53:51 +03:00
a7f102fa94 Enh #10061: yii\helpers\BaseInflector::transliterate() is now public 2015-11-05 16:07:33 +02:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00