public function testBindingInDefaultImplementation() { $classname = jClasses::bind('iface:jelix_tests~tests/foo')->getClassName(); $this->assertEqual($classname, 'bind'); jClasses::resetBindings(); $class = jClasses::getBindedService('iface:jelix_tests~tests/foo'); $this->assertTrue($class instanceof bind); jClasses::resetBindings(); try { $class = jClasses::getBindedService('class:jelix_tests~test/bind'); $this->fail('A non existing default implementation should raise an exception'); } catch (jExceptionSelector $e) { $this->pass(); } }