packages() public static method

packages
public static packages ( ) : array
return array
Example #1
0
 public function testRegister()
 {
     $p = new Package('mypackage');
     $p->register(function ($handler) {
     });
     $packages = Package::packages();
     $this->assertCount(1, $packages);
     $this->assertArrayHasKey('mypackage', $packages);
     return $p;
 }