Carsten Brandt
393fc2744a
Added yii\base\Object for backwards compatibility
...
fixes #7936
close #14478
7 years ago
Carsten Brandt
69673c0c94
Rename Object -> BaseObject for PHP 7.2 compatibility
...
issue #7936
7 years ago
Alexander Makarov
000192522b
Fixes #14482 : fixed tests incompatibility with PHP 5.4
7 years ago
Boudewijn Vahrmeijer
03d53b785d
Fixes #14449 : Fix PHP 7.2 compatibility bugs and add explicit closure support in `yii\base\Application`
7 years ago
Robert Korulczyk
12eb936083
Enable `heredoc_to_nowdoc` rule in php-cs-fixer ( #14419 )
7 years ago
Robert Korulczyk
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.
7 years ago
vladis84
f6b54e1ac8
Fixes #14089 : Added tests for `yii\base\Theme`
7 years ago
Paul Klimov
0beb59305c
Fixes #13058 : Fixed caught exception thrown during view file rendering produces wrong output
7 years ago
Robert Korulczyk
31e321b9b2
Remove unused imports. ( #14096 )
8 years ago
Klimov Paul
928a30588d
memory usage at unit test reduced
8 years ago
Klimov Paul
80ca12872e
garbage collection added to unit tests
8 years ago
Klimov Paul
dee88787fc
compatibility with PHPUnit 6.x added
8 years ago
Carsten Brandt
5faa0032cb
added more assertations for security masking tests
8 years ago
Sam Mousa
8ae207c3a1
Fixes #13837 : Refactored masking of CSRF tokens
8 years ago
Alexander Makarov
3f8e8a89eb
Used more specific unit test assertions in framework tests
8 years ago
gagatust
6397791513
Fixed whitespaces to match code style [skip ci]
8 years ago
Dmitry Klyukin
ecd2dc0d1b
Model loadMultiple test ( #13585 )
8 years ago
Carsten Brandt
25b78aa615
Fixes #13508 : Fixed duplicate attachment of behavior BC break
...
Fixes BC break introduced in
954c771fdb
?diff=split#diff-d45d5e14cbb9739c2e1c63b53ba5e363L669
8 years ago
Klimov Paul
194577c55e
Code style fix
8 years ago
Carsten Brandt
65e4a28800
consistent behavior for Yii::$app->controller and ->action ( #13167 )
...
Fixed inconsistency, `Yii::$app->controller` is available
after handling the request since 2.0.10, this is now also the case for
`Yii::$app->controller->action`.
fixes #12795
8 years ago
Carsten Brandt
48c806fe1c
added unit test for DynamicModel::load()
...
issue #12116
8 years ago
SilverFire - Dmitry Naumenko
437825be70
Implemented Container::setDependencies(), Container::setDefinitions
...
Closes #11758
Closes #13029
8 years ago
Alexey Rogachev
d50a06e4e7
Fixed typo in comment ( #12945 ) [skip ci]
8 years ago
Robert Korulczyk
4aa935e69e
Fixes #12055 : Changed `boolean` to `bool` and `integer` to `int` in phpdoc
8 years ago
Paul Klimov
8d05bd9479
`yii\base\Application::$version` converted to `yii\base\Module::$version` virtual property, allowing to specify version as a PHP callback
...
`yii\base\Application::$version` converted to `yii\base\Module::$version` virtual property, allowing to specify version as a PHP callback
8 years ago
Carsten Brandt
89bc2918d3
Make 'safe' validator work on write-only properties
...
fixes #12605
8 years ago
Boudewijn Vahrmeijer
41e2e244fc
fix failing test in Windows env
8 years ago
Carsten Brandt
b13d6fb13a
make version_compare() match everything starting from alpha
...
to include PHP 7.1-rc1
8 years ago
Carsten Brandt
9524672cd1
skip memcache extension on PHP 7 but keep memcacheD
8 years ago
Carsten Brandt
2bd301d1fe
fix test for PHP 7.1, expect deprecation message for mcrypt_create_iv()
8 years ago
Klimov Paul
48b0b962b8
Added `yii\base\Event::offAll()` method allowing clear all registered class-level event handlers
8 years ago
Carsten Brandt
857da0e102
added test for Module class
...
issue #12422
8 years ago
Klimov Paul
8de6a5117c
Fixed `yii\base\Model::offsetExists()` throws an exception on un-existing field
8 years ago
Paul Klimov
7e7db38011
Fix #11591 `ActionFilter` wildcard ( #11594 )
...
* Added support for wildcards for `only` and `except` at `yii\base\ActionFilter`
8 years ago
Carsten Brandt
5bc2f3a851
avoid random test failure
9 years ago
Alexander Makarov
e00c9d904e
Fixed tests to run properly on Windows
9 years ago
Carsten Brandt
e94b68436d
complete test coverage for reading /dev/urandom
...
fixes an issue with buffered reading
9 years ago
Carsten Brandt
49028af437
skip testing /dev/urandom on windows
...
also removed redundant test
9 years ago
Carsten Brandt
2aeb479341
better unit test for generateRandomBytes()
9 years ago
Alexander Makarov
5f7cd1cbc4
Skipped RNG performance tests
9 years ago
Tom Worster
c455a3c54b
Security component enhancements
...
- Added tests for random key generation speed.
- Better generateRandomKey() performance for small reads because of using fopen + buffered read and local caching of source detection.
- Use /dev/random on FreeBSD.
9 years ago
SilverFire - Dmitry Naumenko
5db2afbaeb
Code style fixed, PHPDoc updated
9 years ago
mdmunir
67b5f4ea19
fix for unsafe validator
...
Closes #8145 #8139 #11153
9 years ago
Carsten Brandt
273bd9ba6d
add test for ActionFilter::isActive
9 years ago
Pavel
b68613b746
Added support for events declared in interfaces #10108
...
Added guide in russian for events in interfaces
9 years ago
Tom Worster
e7a888ad11
use file_get_contents and not magic numbers
9 years ago
Tom Worster
1f41a2c9af
Fixes #9878,9879,9880: Make `\base\Security` use `random_bytes()`, LibreSSL, mcrypt, limit OpenSSL to Windows, and to prefer `password_hash()` over `crypt()`
9 years ago
Carsten Brandt
939b3a9283
added scenario test while reproducing #10034
9 years ago
freezy
6a4436f95b
[ Fixes #9177 ] Password Hash Cost setting for Security component
9 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago