[2.0.1] Revamp error collector scheme: we now have custom mocks and an exchange of...
commit6a95d91a1a179b62c4d0569f29b8dd672f2b8f01
authorEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 26 Jun 2007 19:33:37 +0000 (26 19:33 +0000)
committerEdward Z. Yang <edwardzyang@thewritingpot.com>
Tue, 26 Jun 2007 19:33:37 +0000 (26 19:33 +0000)
tree6281b9c35411849c5feee50c5a580983998f8251
parent275932ec05b56db7bfd1d8a26e13ce7aa1e53030
[2.0.1] Revamp error collector scheme: we now have custom mocks and an exchange of responsibilities
- Fix oversight in AutoParagraph dealing with armor.
- Order errors with no line number last
- Language object now needs $config and $context objects to do parameterized objects
- Auto-close notice added
- Token constructors accept line numbers

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1245 48356398-32a2-884e-a903-53898d9a118a
17 files changed:
library/HTMLPurifier.php
library/HTMLPurifier/ErrorCollector.php
library/HTMLPurifier/Injector/AutoParagraph.php
library/HTMLPurifier/Language.php
library/HTMLPurifier/Language/messages/en.php
library/HTMLPurifier/LanguageFactory.php
library/HTMLPurifier/Strategy/MakeWellFormed.php
library/HTMLPurifier/Strategy/RemoveForeignElements.php
library/HTMLPurifier/Token.php
tests/HTMLPurifier/ErrorCollectorEMock.php [new file with mode: 0644]
tests/HTMLPurifier/ErrorCollectorTest.php
tests/HTMLPurifier/ErrorsHarness.php
tests/HTMLPurifier/LanguageFactoryTest.php
tests/HTMLPurifier/LanguageTest.php
tests/HTMLPurifier/Lexer/DirectLex_ErrorsTest.php
tests/HTMLPurifier/Strategy/MakeWellFormed_ErrorsTest.php
tests/HTMLPurifier/Strategy/RemoveForeignElements_ErrorsTest.php