wiki.techinc.nl/tests/phpunit/unit/includes/libs/services/TestWiring2.php
Aryeh Gregor a995d9be1d Add recursion check to createService()
This will throw when trying to create a service while already in the
process of creating that same service, i.e., if there's a circular
service dependency. This would have saved me a whole bunch of debugging
time. :)

Change-Id: Id148d4f221f35f4069f3e0ab0069d13ca271df3d
2019-08-18 10:51:24 +03:00

10 lines
131 B
PHP

<?php
/**
* Test file for testing ServiceContainer::loadWiringFiles
*/
return [
'Bar' => function () {
return 'Bar!';
},
];