collect() public static method

collect from module hook
Since: 3.0.0
public static collect ( string $event = null, array $parameterArray = [] ) : array
$event string name of the module event
$parameterArray array parameter of the module hook
return array
Esempio n. 1
0
 /**
  * testCollectInvalid
  *
  * @since 3.0.0
  */
 public function testCollectInvalid()
 {
     /* setup */
     Hook::construct($this->_registry);
     Hook::init();
     /* actual */
     $actual = Hook::collect('invalidMethod');
     /* compare */
     $this->assertEmpty($actual);
 }