10 Commits

Author SHA1 Message Date
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
3f8e8a89eb Used more specific unit test assertions in framework tests 2017-03-14 09:45:31 +03:00
6397791513 Fixed whitespaces to match code style [skip ci] 2017-03-14 09:42:13 +03:00
6c2545c807 Added SVG image and SVG mimeType test to FileValidatorTest 2016-03-21 08:34:24 +02:00
a0f9bf2893 Fixed yii\web\UploadedFile::getBaseName() to be multibyte-safe, added test 2016-03-20 23:45:08 +02:00
66c6268e5f FileValidator: updated guide-ru,en, PHP; updated tests 2016-02-24 09:05:29 +02:00
a4c68b5278 #5469 added mimetype mask validation feature 2016-02-24 00:40:34 +02:00
2be8a716b1 #8995, #8996 - added unit test, changelog line 2015-12-05 21:23:33 +02:00
a6fc02345e FileValidator->getSizeLimit: check also php's post_max_size
- return the lowerest of `post_max_size` or `upload_max_filesize`
- Raised warning for misconfigured PHP

close #8373
2015-08-02 23:37:46 +02:00
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00