Commit Graph

12 Commits

Author SHA1 Message Date
Cyrillos Jonua
db0e7a6c8f Fixes #13848: yii\di\Instance::ensure() wasn't throwing an exception when $type is specified and $reference object isn't instance of $type 2017-04-26 03:28:05 +03:00
Klimov Paul
928a30588d memory usage at unit test reduced 2017-04-13 17:00:59 +03:00
Klimov Paul
04a14efd3f compatibility with PHPUnit 6.x fix 2017-04-13 15:29:10 +03:00
Klimov Paul
dee88787fc compatibility with PHPUnit 6.x added 2017-04-13 14:49:43 +03:00
Alexander Makarov
3f8e8a89eb Used more specific unit test assertions in framework tests 2017-03-14 09:45:31 +03:00
SilverFire - Dmitry Naumenko
5e422fd27d Fixed InstanceTest::testRestoreAfterVarExport() to work on HHVM 2017-03-02 12:58:08 +02:00
SilverFire - Dmitry Naumenko
bfa2390d5a Added yii\di\Instance::__set_state() method 2017-03-01 19:29:30 +02:00
Carsten Brandt
a837c59182 improved error message for Instance::ensure() when component does not exist (#12967)
fixes #7333
2016-11-22 17:49:55 +01:00
Carsten Brandt
bda42b68ce fixed yii\di\Instance documentation
fixes #11637
2016-07-11 15:01:17 +02:00
Sam Mousa
8ea4c660da Several improvements to DI container
- Refactored invoke into separate resolve method (reusability)
- Added support for associative params array
- Added PHPUnit group doc to DI tests.
- Improved the tests for better coverage, and fixed a bug discovered by the new tests.

close #10811
2016-02-12 17:29:18 +01:00
LAV45
fcf25e8fa1 Fixed \yii\di\Instance::ensure() to work with minimum settings 2016-01-01 10:39:04 +02:00
Alexander Makarov
6949992246 Simplified tests directory structure a bit 2015-04-16 12:10:01 +03:00