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