1
0
mirror of https://github.com/php/phd.git synced 2026-03-24 07:02:07 +01:00

7 Commits

Author SHA1 Message Date
lacatoire
34f18a654b Replace deprecated SplObjectStorage::detach() with offsetUnset() 2026-02-03 18:35:36 +00:00
haszi
b80ae36dba Change property names to camel case 2024-12-29 19:58:10 +00:00
haszi
b8e817b6ff Replace method calls with property access 2024-12-29 19:58:10 +00:00
haszi
49a37c45b3 Move requireIndexing() to Config (#151)
* Move requireIndexing() to Config

* Change method name to requiresIndexing

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-09-22 19:22:31 +01:00
haszi
25a18b956a Fix doc-en GH-3428 (#137)
Replace static example element counter with class properties in Index and generic XHTML.
Add tests.
Refactor TestRender so that it can render multiple formats.

Co-authored-by: haszi <haszika80@gmail.com>
2024-06-14 16:08:07 +01:00
haszi
765370f528 Move requireIndexing method out of Index
Move requireIndexing method out of Index.
Pass dependencies to requireIndex as parameters.
2024-04-16 11:23:53 +01:00
haszi
b703f50bdf Refactor test helpers and test files (#104)
* Add Format as an optional constructor dependency to TestRender

Add Format as an optional constructor dependency to TestRender.
Check format's methods conditionally.
Refactor tests to inject formats.

* Add Config as a constructor dependency to TestRender

Add Config as a constructor dependency to TestRender.
Refactor tests to inject Config.

* Add Index as an optional constructor dependency to TestRender

* TestRender to extend Render

* Config to allow calling instance methods

* Refactor test helpers and test directory structure

Refactor TestRender to use only constructor injected objects.
Rename test format helper classes to indicate which package they belong to.
Move TestRender and all format helper classes into the phpdotnet phd directory to enable autoloading.
Remove all unnecessary lines from setup.php.
Restructure test directory to follow the structure of the tested classes.

---------

Co-authored-by: haszi <haszika80@gmail.com>
2024-02-26 15:12:03 +00:00