public function testShouldAllowRetrievingListOfDefinedMethods() { $closure = function ($n) { }; $nl = new NodeList(array()); $nl->addMethod('doNothing', $closure); $methods = $nl->getMethodClosures(); $this->assertEquals(array('doNothing' => $closure), $methods); }