Esempio n. 1
0
 /**
  * Method to test extend().
  *
  * @return void
  *
  * @covers Windwalker\DI\Container::extend
  */
 public function testExtend()
 {
     $this->instance->extend('Hello', function ($value, $container) {
         return $value . '~~~!!!';
     });
     $this->assertEquals('World~~~!!!', $this->instance->get('Hello'));
 }