/** * Test the `setSections` and `getSections` accessors. */ public function testSectionAccessors() { $section1 = sha1(microtime(true)); $section2 = sha1(microtime(true)); $sections = array(sha1($section1) => $section1, sha1($section2) => $section2); $docBlock = new PHPDocBlock(); $docBlock->setSections($sections); $this->assertSame($sections, $docBlock->getSections()); }