public function setUp() { $this->container = new Ioc(); Ioc::register('NullObject', function () { return new NullObject(); }); }