function testregComponentImplWithIncFileName() { $pico = new DefaultPicoContainer(); $pico->regComponentImplWithIncFileName('any.filename.inc.php', 'AnyNonIncludedClass'); $ca = $pico->getComponentAdapter('AnyNonIncludedClass'); $this->assertIsA($ca, 'LazyIncludingComponentAdapter'); }
function testIncludeFileNameNotDefinedRegistrationException() { $pico = new DefaultPicoContainer(); try { $pico->regComponentImplWithIncFileName('', 'AnyNonIncludedClass'); $this->fail(); } catch (IncludeFileNameNotDefinedRegistrationException $e) { $this->pass(); } }