public function testBindedServiceCalledTwice() { $obj1 = jClasses::getBindedService('class:jelix_tests~myclass'); $obj2 = jClasses::getBindedService('class:jelix_tests~myclass'); $this->assertTrue($obj1 === $obj2); jClasses::bind('jelix_tests~test')->to('jelix_tests~myclass'); $obj1 = jClasses::getBindedService('jelix_tests~test'); $obj2 = jClasses::getBindedService('jelix_tests~test'); $this->assertTrue($obj1 === $obj2); }