Example #1
0
 /**
  * Test creating sub-scopes with plugin() + path option
  *
  * @return void
  */
 public function testNestedPluginPathOption()
 {
     $routes = new RouteBuilder($this->collection, '/b', ['key' => 'value']);
     $routes->plugin('Contacts', ['path' => '/people'], function ($r) {
         $this->assertEquals('/b/people', $r->path());
         $this->assertEquals(['plugin' => 'Contacts', 'key' => 'value'], $r->params());
     });
 }