summaryrefslogtreecommitdiffstatshomepage
path: root/tests/phpunit/includes
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes')
-rw-r--r--tests/phpunit/includes/abstract-testcase.php2
-rw-r--r--tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php2
-rw-r--r--tests/phpunit/includes/normalize-xml.xsl8
-rw-r--r--tests/phpunit/includes/testcase-ajax.php4
4 files changed, 8 insertions, 8 deletions
diff --git a/tests/phpunit/includes/abstract-testcase.php b/tests/phpunit/includes/abstract-testcase.php
index 5860ddc436..f2978644fa 100644
--- a/tests/phpunit/includes/abstract-testcase.php
+++ b/tests/phpunit/includes/abstract-testcase.php
@@ -1642,7 +1642,7 @@ abstract class WP_UnitTestCase_Base extends PHPUnit_Adapter_TestCase {
/**
* Touches the given file and its directory if it doesn't already exist.
*
- * This can be used to ensure a file that is implictly relied on in a test exists
+ * This can be used to ensure a file that is implicitly relied on in a test exists
* without it having to be built.
*
* @param string $file The file name.
diff --git a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php
index adc0a4cc75..786e70bdc4 100644
--- a/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php
+++ b/tests/phpunit/includes/factory/class-wp-unittest-factory-for-thing.php
@@ -155,7 +155,7 @@ abstract class WP_UnitTest_Factory_For_Thing {
* @param array|null $callbacks Optional. Array with callbacks to apply on the fields.
* Default null.
*
- * @return array|WP_Error Combined array on success. WP_Error when default value is incorrent.
+ * @return array|WP_Error Combined array on success. WP_Error when default value is incorrect.
*/
public function generate_args( $args = array(), $generation_definitions = null, &$callbacks = null ) {
$callbacks = array();
diff --git a/tests/phpunit/includes/normalize-xml.xsl b/tests/phpunit/includes/normalize-xml.xsl
index 135556c61b..cb6f9f6d2a 100644
--- a/tests/phpunit/includes/normalize-xml.xsl
+++ b/tests/phpunit/includes/normalize-xml.xsl
@@ -3,7 +3,7 @@
Normalize an XML document to make it easier to compare whether 2 documents will
be seen as "equal" to an XML processor.
- The normalization is similiar, in spirit, to {@link https://www.w3.org/TR/xml-c14n11/ Canonical XML},
+ The normalization is similar, in spirit, to {@link https://www.w3.org/TR/xml-c14n11/ Canonical XML},
but without some aspects of C14N that make the kinds of assertions we need difficult.
For example, the following XML documents will be interpreted the same by an XML processor,
@@ -23,7 +23,7 @@
>
<!--
- Output UTF-8 XML, no indendation and all CDATA sections replaced with their character content.
+ Output UTF-8 XML, no indentation and all CDATA sections replaced with their character content.
-->
<xsl:output
method='xml'
@@ -61,12 +61,12 @@
</xsl:template>
<!--
- Strip comments.
+ Strip comments.
-->
<xsl:template match='comment()' priority='10' />
<!--
- Pass all other nodes through unchanged.
+ Pass all other nodes through unchanged.
-->
<xsl:template match='node()'>
<xsl:copy>
diff --git a/tests/phpunit/includes/testcase-ajax.php b/tests/phpunit/includes/testcase-ajax.php
index 0478c10900..2e86c29e67 100644
--- a/tests/phpunit/includes/testcase-ajax.php
+++ b/tests/phpunit/includes/testcase-ajax.php
@@ -133,7 +133,7 @@ abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase {
/**
* Sets up the test fixture.
*
- * Overrides wp_die(), pretends to be Ajax, and suppresses E_WARNINGs.
+ * Overrides wp_die(), pretends to be Ajax, and suppresses warnings.
*/
public function set_up() {
parent::set_up();
@@ -161,7 +161,7 @@ abstract class WP_Ajax_UnitTestCase extends WP_UnitTestCase {
$_GET = array();
unset( $GLOBALS['post'] );
unset( $GLOBALS['comment'] );
- remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1, 1 );
+ remove_filter( 'wp_die_ajax_handler', array( $this, 'getDieHandler' ), 1 );
remove_action( 'clear_auth_cookie', array( $this, 'logout' ) );
error_reporting( $this->_error_level );
set_current_screen( 'front' );