public function testAnnotationForGetActionMethods() { $con = new ChildController(); $map = $con->getActionMethods(); $this->assertNotEmpty($map); $this->assertTrue(is_array($map)); $this->assertTrue(isset($map['postAction'])); $this->assertTrue(isset($map['pageAction'])); $this->assertTrue(isset($map['subpageAction'])); is(array(array("Route" => "/post", "Method" => "POST"), array("class" => "ChildController")), $map['postAction']); $routeMap = $con->getActionRoutes(); $this->assertCount(3, $routeMap); list($path, $method, $options) = $routeMap[0]; is('/page', $path); is('pageAction', $method); is(array('method' => REQUEST_METHOD_GET), $options); }