Commit Graph

102 Commits

Author SHA1 Message Date
Alexander Mohorev
899b778994 Correct type declarations 2014-10-25 16:35:50 +03:00
Carsten Brandt
98079b84a2 Merge branch 'master' into Erik-r-2359-formatter-refactored
* master: (1112 commits)
  Removed unused "use" statements
  Fixed array syntax
  Removed unused "use" statements
  Перевод runtime-handling-errors.md на русский язык
  Mark tests with problematic DBMS as skipped.
  Fixes #3511: Dropped `yii.allowAction()` and modified `yii.confirm()` in `yii.js` to support callbacks
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Update runtime-url-handling.md
  Create runtime-url-handling.md
  Fixed test break.
  Fixes #3410: yii.activeForm.js now supports adding/removing fields dynamically
  Fixes #2914: `ActiveForm::fieldConfig` will be merged recursively with the `$options` parameter in `ActiveForm::field()`
  Fixes #4936 [skip ci]
  Reverted/fixed some incorrect changes.
  missing "." sign
  Fixed formatting, initialized options array
  Fixed phpdoc
  ...

Conflicts:
	framework/CHANGELOG.md
	framework/base/Formatter.php
	framework/i18n/Formatter.php
	tests/unit/framework/base/FormatterTest.php
	tests/unit/framework/i18n/FormatterTest.php
2014-09-07 20:44:48 +02:00
Carsten Brandt
f8f0ff5445 moved formatter to i18n namespace 2014-09-07 20:40:34 +02:00
Carsten Brandt
065db64db3 finsihed formatter implementation
neads cleanup
2014-09-07 20:35:15 +02:00
Carsten Brandt
2a15ae12e6 refactored number formatting 2014-09-07 18:34:47 +02:00
Carsten Brandt
a4e86c02de date formatter iteration 2014-09-07 15:54:57 +02:00
Carsten Brandt
7f1f759472 small doc adjustments 2014-09-07 14:54:47 +02:00
Carsten Brandt
62e7c3e9a6 fixed some inconsistnecies in HHVM tests
exclude parts that have different default values
2014-08-15 15:30:32 +02:00
Carsten Brandt
0ed6355ee1 test and docs to be clear about #4558 2014-08-01 15:35:23 +02:00
tom--
c6a8b418ef compareString(): timing depends only on length of $actual input, unit test 2014-07-27 12:03:03 -04:00
Alexander Makarov
c5a3cd511e Security component adjustments: fixed comment style, hkdf() and pbkdf2() are now protected, compareString() is now public 2014-07-26 14:09:38 +04:00
tom--
2c5c2c101b Fixes #4131: Security adjustments 2014-07-26 03:29:30 +04:00
Kai Mindermann
46b553f012 fixes formatter doing one division too much, fixes #4427 2014-07-24 15:55:21 +04:00
Kai Mindermann
f3520187d6 formatter: adds unit tests for base 1000, fixes #4412 2014-07-24 14:57:52 +04:00
Alexander Makarov
481db35512 Fixes #4114: Added Security::generateRandomHexKey(), used it for various tokens and default key generation 2014-06-30 16:36:52 +04:00
Paul Klimov
90a625013c Result check at Security::generateRandomKey() added 2014-06-29 15:39:25 +03:00
Qiang Xue
399b6b18e3 Fixes #4103 2014-06-28 21:58:07 -04:00
Paul Klimov
052ae83340 Option Security::autoGenerateSecretKey added 2014-06-28 00:11:48 +03:00
Paul Klimov
5a42985750 Option Security::useDeriveKeyUniqueSalt added 2014-06-27 23:30:28 +03:00
Paul Klimov
4ce4707a3a Option Security::passwordHashStrategy added 2014-06-27 23:05:23 +03:00
Paul Klimov
4063502439 Option Security::deriveKeyStrategy added 2014-06-27 22:10:02 +03:00
Paul Klimov
4768dcdbc2 Method Security::compareString() extracted 2014-06-27 21:33:42 +03:00
Klimov Paul
db0beb6b6b 'yii\base\Security' component created. 2014-06-27 14:24:58 +03:00
Carsten Brandt
d7b4ea859b refactored date formatting functions
- removed unformat methods, they do not belong here
- removed db format, which is also not purpose of this class
- refactored the whole set of methods to be simpler and better
  maintainable

More unit tests needed.
2014-06-16 18:58:36 +02:00
Erik_r
0a10e92f92 #2359 one test failed in Travis because standard medium date format is different in Travis then on my locale PC. 2014-06-13 10:40:40 +02:00
Erik_r
299d991a2e #2359 testcases adapted and compatibility to old tests improved 2014-06-12 16:45:25 +02:00
Qiang Xue
3616d1f0d1 Fixes #2816: Changed default date and time format of yii\base\Formatter to Y-m-d and H:i:s 2014-04-05 18:15:06 -04:00
Qiang Xue
50e338127d Improved action filter and action execution flow by supporting installing action filters at controller, module and application levels 2014-04-04 23:30:59 -04:00
Alexander Makarov
6054ede16a Fixed phpdoc, removed unit tests for Formatter asRelativeTime that were relative to current time since it was impossible to specify correct expected values 2014-03-31 02:05:04 +04:00
David Renty
dde5a00ce3 Merge branch 'master' of https://github.com/yiisoft/yii2
Conflicts:
	framework/base/Formatter.php
	tests/unit/framework/base/FormatterTest.php
2014-03-18 17:31:11 +01:00
David Renty
91e4ad5978 PSR-2 compliance 2014-03-17 12:02:26 +01:00
SonicGD
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
David Renty
cb3eb9c6d8 Added support for inverted intervals (future time) and unit tests 2014-03-14 18:29:23 +01:00
AlexGx
32d0768919 style fixes with phpcs:yii2 2014-03-08 14:55:58 +02:00
Qiang Xue
fad635440b Fixes #2655: Arrayable and ArrayableTrait are incompatible for some PHP versions. 2014-03-07 19:08:27 -05:00
Qiang Xue
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
Alexander Makarov
fc4098b89a Code style 2014-03-04 00:56:27 +04:00
Qiang Xue
f22d409e8b test break fix. 2014-03-02 00:34:33 -05:00
Florian Fackler
6e1ec30906 Added missing Object.php unit tests for 100% code coverage 2014-02-08 21:42:27 +01:00
Florian Fackler
c600572f34 The missing Component.php tests 2014-02-08 21:11:03 +01:00
Qiang Xue
c829dd6b47 added more tests. 2014-01-27 17:24:48 -05:00
Qiang Xue
18d7224ac8 Fixes #2149: Added yii\base\DynamicModel to support ad-hoc data validation 2014-01-27 16:13:25 -05:00
Panagiotis Moustafellos
58bd2fb958 Only whitespace removal 2013-11-27 20:19:56 +02:00
Qiang Xue
039ed688cf Fixes #1301: fixed scenario generation when there are "except" scenarios. 2013-11-24 10:23:22 -05:00
Qiang Xue
1c24b3e0d8 removed TestCase and WebTestCase. 2013-11-16 21:30:20 -05:00
Qiang Xue
8b00693a0a Fixes #1025: Implemented support for class-level events. 2013-10-30 00:12:48 -04:00
Alexander Makarov
1f6a823073 Short array syntax 2013-10-18 20:52:38 +04:00
Jin Hu
5d7c37bd7e Incorrect array representation when has previous 2013-09-29 23:27:14 +08:00
Carsten Brandt
df6176edb6 added unit test for Model::load() 2013-09-18 23:43:46 +02:00
Carsten Brandt
949dda5fdb tagged tests with @group tags 2013-09-14 12:49:47 +02:00