Index: tests/phpunit/tests/functions/getArchives.php
===================================================================
--- tests/phpunit/tests/functions/getArchives.php	(revision 36252)
+++ tests/phpunit/tests/functions/getArchives.php	(working copy)
@@ -121,4 +121,41 @@
 		$archives = wp_get_archives( array( 'echo' => false, 'post_type' => 'taco' ) );
 		$this->assertEquals( $expected, trim( $archives ) );
 	}
+
+	/**
+	 * @ticket 4969
+	 */
+	function test_wp_get_archives_title() {
+		$expected = "<h1>Archives Title</h1>\t<li><a href='$this->month_url'>" . date( 'F Y' ) . "</a></li>";
+		$result = trim( wp_get_archives(
+			array(
+				'echo'  => false,
+				'title' => 'Archives Title',
+				'title_before' => '<h1>',
+				'title_after' => '</h1>',
+			)
+		) );
+
+		$this->assertEquals( $expected, $result );
+	}
+
+	/**
+	 * @ticket 4969
+	 */
+	function test_wp_get_archives_before_and_after_list() {
+		$date = date( 'F Y' );
+		$expected = <<<EOF
+<ul>\t<li><a href='$this->month_url'>$date</a></li>
+</ul>
+EOF;
+		$result = trim( wp_get_archives(
+			array(
+				'echo'  => false,
+				'list_before' => '<ul>',
+				'list_after' => '</ul>',
+			)
+		) );
+
+		$this->assertEquals( $expected, $result );
+	}
 }
Index: tests/phpunit/tests/post/listPages.php
===================================================================
--- tests/phpunit/tests/post/listPages.php	(revision 36252)
+++ tests/phpunit/tests/post/listPages.php	(working copy)
@@ -342,4 +342,43 @@
 		$actual = wp_list_pages( $args );
 		$this->AssertEquals( $expected['exclude'], $actual );
 	}
+
+	/**
+	 * @ticket 4969
+	 */
+	function test_wp_get_pages_before_and_after() {
+		$expected = '<div>The Pages<ul><li class="page_item page-item-1 page_item_has_children"><a href="' . get_permalink( 1 ) . '">Parent 1</a>
+<ul class=\'children\'>
+	<li class="page_item page-item-4"><a href="' . get_permalink( 4 ) . '">Child 1</a></li>
+	<li class="page_item page-item-5"><a href="' . get_permalink( 5 ) . '">Child 2</a></li>
+	<li class="page_item page-item-6"><a href="' . get_permalink( 6 ) . '">Child 3</a></li>
+</ul>
+</li>
+<li class="page_item page-item-2 page_item_has_children"><a href="' . get_permalink( 2 ) . '">Parent 2</a>
+<ul class=\'children\'>
+	<li class="page_item page-item-7"><a href="' . get_permalink( 7 ) . '">Child 1</a></li>
+	<li class="page_item page-item-8"><a href="' . get_permalink( 8 ) . '">Child 2</a></li>
+	<li class="page_item page-item-9"><a href="' . get_permalink( 9 ) . '">Child 3</a></li>
+</ul>
+</li>
+<li class="page_item page-item-3 page_item_has_children"><a href="' . get_permalink( 3 ) . '">Parent 3</a>
+<ul class=\'children\'>
+	<li class="page_item page-item-10"><a href="' . get_permalink( 10 ) . '">Child 1</a></li>
+	<li class="page_item page-item-11"><a href="' . get_permalink( 11 ) . '">Child 2</a></li>
+	<li class="page_item page-item-12"><a href="' . get_permalink( 12 ) . '">Child 3</a></li>
+</ul>
+</li>
+</ul></div>';
+
+		$result = trim( wp_list_pages(
+			array(
+				'echo'  => false,
+				'before' => '<div>',
+				'after' => '</div>',
+				'title_li' => 'The Pages'
+			)
+		) );
+
+		$this->assertEquals( $expected, $result );
+	}
 }
