function _forge($classname)
{
    return Underscore::forge($classname);
}
예제 #2
0
 /**
  * @tags forgery
  */
 public function testForge()
 {
     _::forge('stdClass\\with\\Traits\\A\\with\\Traits\\B\\with\\Traits\\C');
     $this->boolean(class_exists('stdClass\\with\\Traits\\A\\with\\Traits\\B\\with\\Traits\\C', false))->isTrue();
     // it doesn't create intermediary classes
     $this->boolean(class_exists('stdClass\\widh\\tA', false))->isFalse();
     $object = new \stdClass\with\Traits\A\with\Traits\B\with\Traits\C();
     $this->integer($object->fnC())->isEqualTo(3);
 }