1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
parsedown/test
Haralan Dobrev 5f40cab3e7 Use late static binding for Parsedown::instance()
Fixes erusev/parsedown-extra#67.

This introduces PHP 5.3+ late static binding to the Singleton pattern in Parsedown.
It will return an instance of Parsedown which inherits the class which
called the `instance()` method rather than always returning instance of just `Parsedown`.

Tests are testing this feature with a test class which inherits from Parsedown.
Notice that calling `instance()` with the default arguments after an instance of
`Parsedown` was already created, it will return it even though it is from just
an instance of `Parsedown`. So this is fixing the problem just partially.
2015-08-13 13:29:33 +03:00
..
data Fixes #283 2015-02-03 13:58:47 -08:00
bootstrap.php simplify folder name 2014-04-28 21:53:34 +03:00
CommonMarkTest.php update commonmark test 2015-01-09 00:08:14 +02:00
ParsedownTest.php Use late static binding for Parsedown::instance() 2015-08-13 13:29:33 +03:00
TestParsedown.php Use late static binding for Parsedown::instance() 2015-08-13 13:29:33 +03:00