public function testAddPreConverter() { $html5Converter = new Html5('foo.xsl'); $converter1 = $this->getPreConvertMock(); $html5Converter->addPreConverter($converter1); $converter2 = $this->getPreConvertMock(); $html5Converter->addPreConverter($converter2); $this->assertSame(array($converter1, $converter2), $html5Converter->getPreConverters()); }