Andrew Nester
ed23b97baf
#10574 - Fix for BaseArrayHelper to work with invalid characters in proper way
9 years ago
Carsten Brandt
f6dcb290ed
reverted c00b97a/#9915, this is expected behavior
...
When accessing non-existing properties it is expected behavior to throw an error.
This is the case in all other places.
It is also not reliably possible to determine whether a property exists beforehand.
it is not sufficient to call `property_exists()` as it may be available via `__get()`.
Instead of `property_exists()` or `isset()` it should call `$object->canGetProperty()` but this is not
guaranteed to be implemented and therefor doing such a check will not work in 2.0.x.
calling isset() may break code that works through __get() but has not implemented __isset() properly.
We may discuss this for 2.1 again but I am in favor of keeping it as is.
9 years ago
Carsten Brandt
d1812d2081
fixed arrayhelper test, renamed test methods according to FW change
9 years ago
Sam Mousa
22d9997281
Implemented support of traversable objects in `RangeValidator::ranges`, added `ArrayHelper::in()` and `ArrayHelper::subset()`
9 years ago
Vadim
c00b97a12c
Fixes #9915 : `yii\helpers\ArrayHelper::getValue()` was erroring instead of returning `null` for non-existing object properties
9 years ago
Klimov Paul
8caaba0168
Allow specification of the `$key` as an array at `yii\helpers\ArrayHelper::getValue()`
10 years ago
Alexander Makarov
6949992246
Simplified tests directory structure a bit
10 years ago
Qiang Xue
fe19243da1
Fixes #6969 : `yii\helpers\ArrayHelper::htmlEncode()` and `htmlDecode()` should not remove non-string data
10 years ago
Qiang Xue
cf0c8c37dd
Fixes #5983 : Added `Inflector::sentence()`
10 years ago
pana1990
d86da1d38e
add tests for sentence method
10 years ago
Qiang Xue
0e143338d7
Finished refactoring find() .
11 years ago
Qiang Xue
b7d6f6141a
Added `isAssociative()` and `isIndexed()` to `yii\helpers\ArrayHelper`
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Qiang Xue
9e66e08bc7
Fixes #802 : Added support for retrieving sub-array element or child object property through `ArrayHelper::getValue()`
11 years ago
Qiang Xue
7a5a29c767
Added ArrayHelper::keyExists().
11 years ago
Carsten Brandt
c10e8af824
fixed array helper test
11 years ago
Qiang Xue
53457a0a3f
Simplified ArrayHelper::multisort().
11 years ago
Qiang Xue
9efe446545
Fixes #1236 : removed Sort::ASC and DESC
11 years ago
Qiang Xue
1c24b3e0d8
removed TestCase and WebTestCase.
11 years ago
Alexander Makarov
1f6a823073
Short array syntax
11 years ago
Carsten Brandt
949dda5fdb
tagged tests with @group tags
11 years ago
Alexander Makarov
cc5618c034
More tests for ArrayHelper and Inflector
11 years ago
Qiang Xue
9aa7b26184
Added LinkSorter.
11 years ago
Qiang Xue
0845f4b183
Enhanced ArrayHelper::toArray()
11 years ago
Qiang Xue
0a9fffba8f
fixed test break.
11 years ago
Alexander Makarov
7cd9123c3b
Tests cleanup
...
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
12 years ago
slavcopost
59cb5d1199
Add unit test
12 years ago
Antonio Ramirez
5da62fab3a
#196 refactored method name
12 years ago
Antonio Ramirez
e2a57e4b88
Enhance ArrayHelper with popValue method
12 years ago
Qiang Xue
6e779e02d6
Fixed issue #7 : ArrayHelper::multisort is not compatible with PHP 5.3
12 years ago
Alexander Makarov
9da81894be
moved helper test from util namespace to helpers namespace, added tests for StringHelper
12 years ago
Qiang Xue
884977a724
renamed util to helpers.
12 years ago
Qiang Xue
03e212bcf6
Added HtmlTest.
12 years ago
Qiang Xue
499f7bfce8
Added ArrayHelper::multisort() test.
12 years ago