1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 19:30:21 +02:00

fix: non-substantive typos (#434)

Co-authored-by: Viktor Szépe <viktor@szepe.net>
Co-authored-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
Pieter Oliver
2025-01-14 21:31:27 +00:00
committed by GitHub
parent b21a59101f
commit c2bc3549a3
43 changed files with 64 additions and 64 deletions

View File

@@ -34,12 +34,12 @@ class HTMLPurifier_AttrCollectionsTest extends HTMLPurifier_Harness
$modules['Module2'] = new HTMLPurifier_HTMLModule();
$modules['Module2']->attr_collections = array(
'Core' => array(
0 => array('Brocolli')
0 => array('Broccoli')
),
'Soup' => array(
'attribute-3' => 'Type3'
),
'Brocolli' => array()
'Broccoli' => array()
);
$collections->doConstruct($types, $modules);
@@ -48,14 +48,14 @@ class HTMLPurifier_AttrCollectionsTest extends HTMLPurifier_Harness
$collections->info,
array(
'Core' => array(
0 => array('Soup', 'Undefined', 'Brocolli'),
0 => array('Soup', 'Undefined', 'Broccoli'),
'attribute' => 'Type',
'attribute-2' => 'Type2'
),
'Soup' => array(
'attribute-3' => 'Type3'
),
'Brocolli' => array()
'Broccoli' => array()
)
);

View File

@@ -59,7 +59,7 @@ extends HTMLPurifier_ChildDefHarness
);
}
public function testWrapComplicatedSring()
public function testWrapComplicatedString()
{
$this->assertResult(
$var = 'He said<br />perhaps<br />we should <b>nuke</b> them.',

View File

@@ -184,7 +184,7 @@ class HTMLPurifier_ConfigTest extends HTMLPurifier_Harness
)
);
// grab a non-existant namespace
// grab a non-existent namespace
$this->expectError('Cannot retrieve undefined namespace Constants');
$config->getBatch('Constants');

View File

@@ -331,7 +331,7 @@ Par1
);
}
public function testBlockNodeTextDelimeterInBlockNode()
public function testBlockNodeTextDelimiterInBlockNode()
{
$this->assertResult(
'<div>Par1
@@ -343,7 +343,7 @@ Par1
);
}
public function testBlockNodeTextDelimeterWithoutDoublespaceInBlockNode()
public function testBlockNodeTextDelimiterWithoutDoublespaceInBlockNode()
{
$this->assertResult(
'<div>Par1
@@ -351,7 +351,7 @@ Par1
);
}
public function testBlockNodeTextDelimeterWithoutDoublespace()
public function testBlockNodeTextDelimiterWithoutDoublespace()
{
$this->assertResult(
'Par1

View File

@@ -10,7 +10,7 @@ class HTMLPurifier_Injector_PurifierLinkifyTest extends HTMLPurifier_InjectorHar
$this->config->set('AutoFormat.PurifierLinkify.DocURL', '#%s');
}
public function testNoTriggerCharacer()
public function testNoTriggerCharacter()
{
$this->assertResult('Foobar');
}

View File

@@ -669,7 +669,7 @@ class HTMLPurifier_LexerTest extends HTMLPurifier_Harness
return;
} elseif (LIBXML_VERSION < 20628) {
// libxml's behavior is wrong prior to this version, so make
// appropriate accomodations
// appropriate accommodations
$extra['DOMLex'] = $extra['DirectLex'];
}
$this->assertTokenization(

View File

@@ -29,7 +29,7 @@ class HTMLPurifier_PercentEncoderTest extends HTMLPurifier_Harness
$this->assertDecode('%2B2B%3A3A'); // extra text
$this->assertDecode('%2b2B%4141', '%2B2BA41'); // extra text, with normalization
$this->assertDecode('%', '%25'); // normalize stray percent sign
$this->assertDecode('%5%25', '%255%25'); // permaturely terminated encoding
$this->assertDecode('%5%25', '%255%25'); // prematurely terminated encoding
$this->assertDecode('%GJ', '%25GJ'); // invalid hexadecimal chars
// contested behavior, if this changes, we'll also have to have

View File

@@ -157,7 +157,7 @@ class HTMLPurifier_Strategy_MakeWellFormedTest extends HTMLPurifier_StrategyHarn
);
}
public function testNoAutocloseIfNoParentsCanAccomodateTag()
public function testNoAutocloseIfNoParentsCanAccommodateTag()
{
$this->assertResult(
'<table><tr><td><li>foo</li></td></tr></table>',

View File

@@ -1,6 +1,6 @@
<?php
// needs to be seperated into files
// needs to be separated into files
class HTMLPurifier_TagTransformTest extends HTMLPurifier_Harness
{