Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
haszi committed Jun 23, 2024
1 parent a4b3aa6 commit 43daea6
Show file tree
Hide file tree
Showing 30 changed files with 37 additions and 37 deletions.
4 changes: 2 additions & 2 deletions tests/bug_doc-en_GH-3353.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ $config->set_indexcache($indexRepository);


// Indexing
$index = new TestIndex($indexRepository);
$index = new TestIndex($indexRepository, $config);
$render->attach($index);

$reader = new Reader;
Expand All @@ -30,7 +30,7 @@ $render->detach($index);


// Rendering
$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render->attach($format);

$reader = new Reader;
Expand Down
8 changes: 4 additions & 4 deletions tests/bug_doc-en_GH-3428.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $indexRepository = new IndexRepository(new \SQLite3(":memory:"));
$indexRepository->init();
$config->set_indexcache($indexRepository);

$index = new TestIndex($indexRepository);
$index = new TestIndex($indexRepository, $config);

$render = new TestRender(new Reader, $config, null, $index);

Expand All @@ -29,9 +29,9 @@ var_dump($indexes);

$render = new TestRender(new Reader, $config);

$format1 = new TestGenericChunkedXHTML;
$format2 = new TestGenericChunkedXHTML;
$format3 = new TestGenericChunkedXHTML;
$format1 = new TestGenericChunkedXHTML($config);
$format2 = new TestGenericChunkedXHTML($config);
$format3 = new TestGenericChunkedXHTML($config);

$render->attach($format1);
$render->attach($format2);
Expand Down
4 changes: 2 additions & 2 deletions tests/example_numbering_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ $indexRepository = new IndexRepository(new \SQLite3(":memory:"));
$indexRepository->init();
$config->set_indexcache($indexRepository);

$index = new TestIndex($indexRepository);
$index = new TestIndex($indexRepository, $config);

$render = new TestRender(new Reader, $config, null, $index);

Expand All @@ -27,7 +27,7 @@ echo "Indexes stored:\n";

var_dump($indexes);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);

$render = new TestRender(new Reader, $config, $format);

Expand Down
2 changes: 1 addition & 1 deletion tests/index/bug_GH-98.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $config->setXml_file($xml_file);
$indexRepository = new IndexRepository(new \SQLite3(":memory:"));
$indexRepository->init();

$index = new TestIndex($indexRepository);
$index = new TestIndex($indexRepository, $config);
$render = new TestRender(new Reader, $config, null, $index);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/index/indexing_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ $config->setXml_file($xml_file);
$indexRepository = new IndexRepository(new \SQLite3(":memory:"));
$indexRepository->init();

$index = new TestIndex($indexRepository);
$index = new TestIndex($indexRepository, $config);
$render = new TestRender(new Reader, $config, null, $index);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/001-1.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/002.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/003.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/attribute_formatting_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/attribute_formatting_001.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);

$format->SQLiteIndex(
null, // $context,
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/attribute_formatting_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/attribute_formatting_002.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);

$format->SQLiteIndex(
null, // $context,
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/attribute_formatting_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $config = new Config;

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);

$format->SQLiteIndex(
null, // $context,
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/caption_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/caption_001.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);
$format->postConstruct();
$render = new TestRender(new Reader, $config, $format);

Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/simplelist_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/simplelist.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/generic/whitespace_formatting_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/whitespace_formatting_001.xml";

$config->setXml_file($xml_file);

$format = new TestGenericChunkedXHTML;
$format = new TestGenericChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/bug49101-1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/bug49101-1.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/bug49101-2.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/bug49101-1.xml";

$config->setXml_file($xml_file);

$format = new TestPHPBigXHTML;
$format = new TestPHPBigXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/bug49102-1.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/bug49102-1.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/bug_doc-en_GH-3179.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/bug_doc-en_GH-3197.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/class_rendering_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/class_rendering_001.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/class_rendering_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/class_rendering_002.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
4 changes: 2 additions & 2 deletions tests/package/php/class_rendering_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_filePhpdoc = __DIR__ . "/data/class_rendering_001.xml";

$config->setXml_file($xml_filePhpdoc);

$formatPhpdoc = new TestPHPChunkedXHTML;
$formatPhpdoc = new TestPHPChunkedXHTML($config);
$renderPhpdoc = new TestRender(new Reader, $config, $formatPhpdoc);

ob_start();
Expand All @@ -22,7 +22,7 @@ $xml_fileReferenceWithRole = __DIR__ . "/data/class_rendering_002.xml";

$config->setXml_file($xml_fileReferenceWithRole);

$formatReferenceWithRole = new TestPHPChunkedXHTML;
$formatReferenceWithRole = new TestPHPChunkedXHTML($config);
$renderReferenceWithRole = new TestRender(new Reader, $config, $formatReferenceWithRole);

ob_start();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/constant_links_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ $indices = [
],
];

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);

foreach ($indices as $index) {
$format->SQLiteIndex(
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/exception_rendering_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/exception_rendering_001.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/exception_rendering_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/exception_rendering_002.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
4 changes: 2 additions & 2 deletions tests/package/php/exception_rendering_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_filePhpdoc = __DIR__ . "/data/exception_rendering_001.xml";

$config->setXml_file($xml_filePhpdoc);

$formatPhpdoc = new TestPHPChunkedXHTML;
$formatPhpdoc = new TestPHPChunkedXHTML($config);
$renderPhpdoc = new TestRender(new Reader, $config, $formatPhpdoc);

ob_start();
Expand All @@ -22,7 +22,7 @@ $xml_fileReferenceWithRole = __DIR__ . "/data/exception_rendering_002.xml";

$config->setXml_file($xml_fileReferenceWithRole);

$formatReferenceWithRole = new TestPHPChunkedXHTML;
$formatReferenceWithRole = new TestPHPChunkedXHTML($config);
$renderReferenceWithRole = new TestRender(new Reader, $config, $formatReferenceWithRole);

ob_start();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/faq001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/faq001.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/type_rendering_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/type_rendering_methodsynopsis_return_types.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/type_rendering_002.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/type_rendering_methodsynopsis_parameters.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/type_rendering_003.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/type_rendering_constructorsynopsis_parameters-and-r

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down
2 changes: 1 addition & 1 deletion tests/package/php/variablelist_rendering_001.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ $xml_file = __DIR__ . "/data/variablelist_rendering_001.xml";

$config->setXml_file($xml_file);

$format = new TestPHPChunkedXHTML;
$format = new TestPHPChunkedXHTML($config);
$render = new TestRender(new Reader, $config, $format);

$render->run();
Expand Down

0 comments on commit 43daea6

Please sign in to comment.