sintonia/airtime_mvc/application/controllers
Lucas Bickel 625f92fe44 Vendorize ZF1, fix PHPUnit and configure travis
This a a rather large commit due to the nature of the stuff it is touching. To get PHPUnit up and running again I had to update some deps and I did so by vendorizing them. The vendorizing of zf1 makes sense since distros are already considering to drop it from their repos.

* [x] install vendorized zf1 with composer
* [x] load composer autoloader before zf1
* [x] Implement headAction for all Zend_Rest_Controller based controllers
* [x] switch to yml dataset to get around string only limitations of xml sets (also removed warning in readme)
* [x] use year 2044 as hardcoded date for tests since it is in the future and has the same days like previously used 2016
* [x] make tests easier to run when accessing phpunit directly
* [x] clean up test helper to always use airtime.conf
* [x] switch test dbname to libretime_test
* [x] test db username password switched to libretime/libretime
* [x] install phpunit with composer in a clear version (make tests easier to reproduce on other platforms)
* [x] remove local libs from airtime repo (most of airtime_mvc/library was not needed of in vendor already)
* [x] configure composer autoloading and use it (also removed requires that are not needed anymore)
* [x] add LibreTime prefix for FileNotFoundException (phing had a similar class and these are all pre-namespace style)
* [x] add .travis.yml file
* [x] make etc and logdir configurable with LIBRETIME_CONF_DIR and LIBRETIME_LOG_DIR env (so travis can change it)
* [x] slight cleanup in config for travis not to fail
* [x] add cloud_storage.conf for during test runs
* [x] rewrite mvc testing docs and move them to docs/ folder
* [x] don't use `static::class` in a class that does not have a parent class, use `__CLASS__` instead.
* [x] don't use `<ClassName>::class`, since we already know what class we want `"<ClassName>"` ist just fine.
* [x] fix "can't use method in write context" errors on 5.4 (also helps the optimizer)
* [x] add build status badge on main README.md

Fixes https://github.com/LibreTime/libretime/issues/4

The PHP parts of https://github.com/LibreTime/libretime/pull/10 get obsoleted by this change and it will need rebasing.

This also contains https://github.com/LibreTime/libretime/pull/8, the late static binding compat code was broken for no reason and until CentOS drops php 5.4 there is no reason I'm aware of not to support it. I inlined #8 since the test would be failing on php 5.4 without the change.

If you want to run tests you need to run `composer install` in the root directory and then `cd airtime_mvc/tests && ../../vendor/bin/phpunit`. For the tests to run the user `libretime` needs to be allowed to create the `libretime_test` database. See `docs/TESTING.md` for more info on getting set up.
2017-02-27 17:59:01 +01:00
..
downgrade_sql SAAS-1073: Schema upgrade for podcasts 2015-11-03 11:29:50 -05:00
plugins Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
upgrade_sql SAAS-1073: Schema upgrade for podcasts 2015-11-03 10:57:55 -05:00
ApiController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
AudiopreviewController.php SAAS-922 - replace large conditionals with single public mime-type map 2015-07-07 15:48:22 -04:00
BillingController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
DashboardController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
EmbedController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
EmbeddablewidgetsController.php Refactored Facebook Widget stuff 2015-10-30 14:38:34 -04:00
ErrorController.php SAAS-1135 - fix help button url for logged out users 2015-11-19 11:08:35 -05:00
FeedsController.php SAAS-1244 - improve pending podcast episode sweeping; small bugfixes 2015-11-26 15:25:38 -05:00
IndexController.php Display message on radio page if no podcast tracks have been published yet. 2015-11-16 15:28:54 -05:00
LibraryController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
ListenerstatController.php SAAS-1024: Merge layout.phtml and page-sub-menu.phtml 2015-08-21 09:25:01 -04:00
LocaleController.php Frontend polish and fixes; make empty placeholder implementation more abstract and add placeholder to 'My Podcast' view 2015-11-12 19:02:09 -05:00
LoginController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
PlaylistController.php Better errors from podcast 'Add' dialog 2015-11-10 19:26:25 -05:00
PlayouthistoryController.php SAAS-1024: Merge layout.phtml and page-sub-menu.phtml 2015-08-21 09:25:01 -04:00
PlayouthistorytemplateController.php SAAS-1024: Merge layout.phtml and page-sub-menu.phtml 2015-08-21 09:25:01 -04:00
PluploadController.php Fix responsiveness of upload page 2015-09-03 15:51:09 -04:00
PodcastController.php Restrict podcast hosting for some plans. Fixed error page colours. 2015-11-17 17:34:13 -05:00
PreferenceController.php Hide Soundcloud options from preferences for hobbyist plans 2015-11-18 12:31:31 -05:00
ProvisioningController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
RenderController.php SAAS-1062 - Podcast skeleton work; slight rework to backend functionality 2015-09-18 15:39:12 -04:00
ScheduleController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
SetupController.php CC-6096, CC-6093 - update calendar context menu and usability hint wording; bugfixes 2015-08-27 16:59:21 -04:00
ShowbuilderController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
SoundcloudController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
ThankYouController.php Trial->Paid conversion tracking with GTM 2015-03-24 10:11:25 -04:00
ThirdPartyController.php Remove unnecessary field 2015-10-19 17:00:03 -04:00
UpgradeController.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
UserController.php Merge branch 'saas-sessionoptimizations' into saas-3.x-sessionoptimizations 2015-09-29 18:58:55 -04:00
UsersettingsController.php Refactored double Set-Cookie prevention code, and session reopening code 2015-09-25 12:03:10 -04:00
WebstreamController.php Fix bug where user could open mutiple copies of same webstream tab 2015-09-29 16:34:23 -04:00
WhmcsLoginController.php CC-6096, CC-6093 - update calendar context menu and usability hint wording; bugfixes 2015-08-27 16:59:21 -04:00