assert index.php being called from command-line
moved index.php to ../build.php
assert index.php returns a closure
closure in index.php should construct a new HTML5\Document
require document having an text 'Hello World' as its child
use public/index.php in build.php
remove selenium support
assert build.php creating index.html in target folder
assert index.php uses passed closure to write contents to file
let build.php pass a filewriter to index.php
create filewriter as service
use filewriter in services in index.php
do not pass filewriter as a second argument to document factory
expect return value of filewriter being returned
make HTML5\Factory create text nodes
use HTML5\Factory::createText
remove duplication