Commit graph

28 commits

Author SHA1 Message Date
Pierre Rudloff
05311ac7b6 Add return types 2020-12-17 22:49:21 +01:00
Pierre Rudloff
3d2b518cb4 Create a test container that we can use in any test 2020-10-22 22:48:47 +02:00
Pierre Rudloff
342b8c4a42 Use secure session cookies (fixes #321) 2020-10-21 23:04:29 +02:00
Pierre Rudloff
de8c5e5dc7 Convert SessionManager to a factory class 2020-10-21 22:48:05 +02:00
Pierre Rudloff
123a6c5ad9 Move middleware to a subfolder 2020-10-20 23:17:22 +02:00
Pierre Rudloff
15636aa435 Stop using a singleton for LocaleManager (#298) 2020-10-17 22:36:03 +02:00
Pierre Rudloff
bc695cfa15 Lint 2020-05-13 21:33:05 +02:00
Pierre Rudloff
fea1cce2d4 Switch to phpunit 8 2019-11-30 14:09:12 +01:00
Pierre Rudloff
7772de5394 Fix tests (#250) 2019-11-28 00:04:05 +01:00
Pierre Rudloff
44bf858c35 style(phpcs): Switch to PSR-12
https://www.php-fig.org/psr/psr-12/
2019-10-03 21:24:12 +02:00
Pierre Rudloff
06a631c892 fixup! refactor: New Video class 2019-04-21 18:35:24 +02:00
Pierre Rudloff
4c9af8ad1d refactor: New Video class
The news class provides a cleaner object-oriented logic

BREAKING CHANGE: The VideoDownload class has been removed and the Config constructor is now private
2019-04-21 18:30:02 +02:00
Pierre Rudloff
3f325ddaae Missing property 2017-11-12 16:39:56 +01:00
Pierre Rudloff
1b5e99403f Basic testEnv test 2017-11-11 23:00:53 +01:00
Pierre Rudloff
0027250de7 testTestLocale fails on Windows 2017-11-11 22:48:11 +01:00
Pierre Rudloff
3ffdec9ca1 Run testTestLocale on Travis 2017-11-11 22:39:41 +01:00
Pierre Rudloff
8848a8dbf3 Improve LocaleMiddlewareTest
Add a way to unset the current locale
2017-11-10 12:18:20 +01:00
Pierre Rudloff
0a2971399b Lint 2017-10-29 23:21:13 +01:00
Pierre Rudloff
d14b1458a1 Update phpunit to 6.4 2017-10-26 10:48:09 +02:00
Pierre Rudloff
b0c4963ac8 Don't use anonymous functions
Added some missing doc
2017-10-02 20:31:56 +02:00
Pierre Rudloff
b92cf21d09 Skip testTestLocale 2017-08-21 20:50:44 +02:00
Pierre Rudloff
0a66dce2b8 More test coverage
Run youtube-dl with --restrict-filenames in order to avoid issues when testing against different locales
2017-05-31 00:48:50 +02:00
Pierre Rudloff
4aba4d5bfd Remove tests with getenv() since it does not seem to be reliable across different testing environments 2017-05-30 23:59:15 +02:00
Pierre Rudloff
3ead8dd458 Undeclared properties 2017-05-30 23:49:38 +02:00
Pierre Rudloff
433a580d64 Fix LocaleMiddleware tests 2017-05-30 23:41:26 +02:00
Pierre Rudloff
e64bb9b9f5 Fix tests 2017-05-29 22:09:33 +02:00
Pierre Rudloff
ac4bca35a3 Lint 2017-05-29 21:13:10 +02:00
Pierre Rudloff
68b2cca899 Detect user locale 2017-05-29 21:11:59 +02:00