/** * @param string $prefix * @return $this */ public function registerGlobalFor($prefix) { GlobalSkeleton::instance()->add($prefix, $this); return $this; }
public function test_add_PrefixShorterThan3Characters_ItemFound() { $source = $this->mockISkeletonSource(); GlobalSkeleton::instance()->add('ac', $source); $this->assertSame($source, GlobalSkeleton::instance()->getSkeleton('ac')); }