added testcase of @UncleCoder

https://github.com/UncleCoder/yii2/commit/e43c503c2d8408f46fb4ff09330db4e5a9f1cf01

issue #3817