Index: test_includes_deprecated.php
===================================================================
--- test_includes_deprecated.php	(revision 0)
+++ test_includes_deprecated.php	(working copy)
@@ -0,0 +1,62 @@
+<?php
+/**
+ * Test cases for deprecated functions
+ *
+ * @package    WordPress
+ * @subpackage Unit Tests
+ * @since      3.4.0
+ */
+class TestDeprecatedFunctions extends WPTestCase {
+
+	/**
+	 * List of functions that have been passed through _deprecated_function()
+	 * @var string[]
+	 */
+	protected $_deprecated_functions = array();
+
+	/**
+	 * Set up the test fixture
+	 * @return void
+	 */
+	public function setUp() {
+		parent::setUp();
+		$this->_deprecated_functions = array();
+		add_action( 'deprecated_function_run' , array( $this, 'deprecated_function' ) );
+		add_action( 'deprecated_function_trigger_error', '__return_false' );
+	}
+
+	/**
+	 * Tear down the test fixture
+	 * @return void
+	 */
+	public function teardown() {
+		remove_action( 'deprecated_function_run' , array( $this, 'deprecated_function' ) );
+		remove_action( 'deprecated_function_trigger_error', '__return_false' );
+		parent::tearDown();
+	}
+
+	/**
+	 * Catch functions that have passed through _deprecated_function
+	 * @param string $func
+	 * @return void
+	 */
+	public function deprecated_function( $func ) {
+		if ( !array_key_exists( $func, $this->_deprecated_functions ) ) {
+			$this->_deprecated_functions[$func] = 0;
+		}
+		$this->_deprecated_functions[$func]++;
+	}
+
+	/**
+	 * Test that url_is_accessable_via_ssl is deprecated
+	 * @return void
+	 */
+	public function test_url_is_accessable_via_ssl() {
+		$this->knownWPBug( 19555 );
+		add_filter( 'https_ssl_verify', '__return_false' );
+		$ret = url_is_accessable_via_ssl( 'http://api.wordpress.org/secret-key/1.1/' );
+		remove_filter( 'https_ssl_verify', '__return_false' );
+		$this->assertTrue( $ret );
+		$this->assertArrayHasKey( 'url_is_accessable_via_ssl', $this->_deprecated_functions );
+	}
+}
+
