/**
  * * @expectedException \ExtDirect\Exceptions\ExtDirectException
  */
 public function testAddNotUnique()
 {
     $method = new Direct();
     $method->name = "DummyAction";
     $collection = new DirectCollection();
     $collection->add($method);
     $collection->add($method);
 }
Example #2
0
 /**
  * Parses application directory for remotable methods
  *
  * @return DirectCollection
  */
 public function run()
 {
     $list = $this->getClassList();
     $directCollection = new DirectCollection();
     foreach ($list as $class) {
         $cl = $this->processClass($class);
         if ($cl !== false) {
             $directCollection->add($cl);
         }
     }
     return $directCollection;
 }