| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
These stubs are no longer needed, as the tests have a db now.
|
| |
|
| |
|
| |
|
|
|
|
| |
default falue in case the value was an array. also add a testcase for this situation
|
| |
|
| |
|
| |
|
|\
| |
| |
| |
| | |
tests: Integrate the DB in "unit" tests.
See merge request hubzilla/core!2081
|
| | |
|
|/ |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This should fix issue #1828.
This patch makes it explicit that we store arrays in the config as json
encoded arrays, while we allow both json encoded and PHP serialized
arrays to be deserialized correctly. Unless it's a brand new install,
the existing data in the database will be PHP serialized.
I've also added a hardening measure in case we fall back to PHP
unserialize, making sure we're not vulnerable to a PHP Object Injection
attack. This means that deserializing arrays containing PHP objects will
no longer work, but afaict we never do that anyways, so I don't think
that should break anything.
|
| |
|
|
|
|
| |
Also some Doxygen docu for this class.
|
|
|
|
|
|
|
| |
stable 6.
Update requirements to PHP7 for dev.
Add php-mock-phpunit to mock and stub global functions in a better way.
|
|
Not sure if this method is used anywhere, but it should not have worked
correctly. This should correct it.
Add a unit test for this class.
|