public function testImportMethodsWithPrefix()
 {
     $collection = new MethodsCollection();
     $this->provider->importMethods($collection, array(), 'prefix_');
     $this->assertTrue($this->provider->has('prefix_static_method_1'));
     $this->assertTrue($this->provider->has('prefix_method1'));
 }
Пример #2
0
 /**
  * Returns a tree node builder loaded with common transformations.
  *
  * @return TreeBuilder
  */
 public static function builder()
 {
     $provider = new TransformationProvider();
     $provider->importStatics('\\TreeBuilder\\Transformation\\Common');
     return new TreeBuilder(null, $provider);
 }