test: abstract parser test result
authorAntoine Musso <hashar@free.fr>
Tue, 19 Mar 2013 14:00:44 +0000 (15:00 +0100)
committerAntoine Musso <hashar@free.fr>
Mon, 8 Apr 2013 09:15:28 +0000 (11:15 +0200)
commit9a90062eca15355d96eec8a3cd1e3bbfb4fa2174
treee71c3ff24c539e24a476105744be132f50c10c02
parent5131bbadd1a7b9a0ca21b6e0a5e2f96959f5400d
test: abstract parser test result

This patch introduce the new ParserTestResult class which is meant to
represent the result of a parser test.  I have refactored some methods
to take advantage of this new class.

It just hold the test description and the actual/expected parser output.
A short isSuccess() method is provided for convenience, we can later
improve the class to carry more methods.

Change-Id: Ifb86e09451875dc119633b52d3f7e4f47c67cc60
tests/TestsAutoLoader.php
tests/parser/ParserTestResult.php [new file with mode: 0644]
tests/parser/parserTest.inc