Index: tests/phpunit/tests/functions/wp-validate-boolean.php
===================================================================
--- tests/phpunit/tests/functions/wp-validate-boolean.php	(nonexistent)
+++ tests/phpunit/tests/functions/wp-validate-boolean.php	(working copy)
@@ -0,0 +1,62 @@
+<?php
+/**
+ * tests for wp_validate_boolean() in functions.php
+ * User: PBearne
+ * Date: 2016-02-01
+ *
+ */
+
+if ( ! defined( 'WPINC' ) ) {
+	die;
+}
+/**
+ * @group functions.php
+ */
+class Tests_Functions_wp_validate_boolean extends WP_UnitTestCase {
+
+	/**
+	 * data provider
+	 *
+	 * @return array
+	 */
+	function data_provider() {
+			$std = new \stdClass();
+
+			return array(
+				array ( true, true ),
+				array ( false, false ),
+				array ( 'true', true ),
+				array ( 'false', false ),
+				array ( 'string', true ),
+				array ( array(), false ),
+				array ( 1, true ),
+				array ( 0, false ),
+				array ( -1, true ),
+				array ( 99, true ),
+				array ( $std, true ),
+				array ( 'yes', true ),
+				array ( 'no', true ),
+				array ( '', false ),
+				array ( 0.1, true ),
+				array ( '1', true ),
+				array ( '0', false ),
+				array ( 'FalSE', false ), // @ticket 30238
+				array ( null, false ),
+				array ( 'FALSE', false ), // @ticket 30238
+				array ( 'TRUE', true ),
+				array ( ' FALSE ', true ),
+			);
+		}
+
+	/**
+	 * @covers ::wp_validate_boolean
+	 * @dataProvider data_provider
+	 *
+	 * @param mixed $tested.
+	 * @param bool $expected.
+	 */
+	public function test_wp_validate_boolea( $tested, $expected ) {
+
+		$this->assertEquals( wp_validate_boolean( $tested ), $expected );
+	}
+}
