sintonia/airtime_mvc/application/forms
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
..
customfilters CC-4090: Make code style PSR compliant - part 4 2012-08-28 23:04:55 -04:00
customvalidators CC-6046, CC-6045, CC-6047 - New SoundCloud implementation 2015-06-03 16:57:17 -04:00
helpers Added Admin_Only decorator and greyed out read-only text-areas 2015-04-14 14:35:37 -04:00
AddShowAbsoluteRebroadcastDates.php - Moved all form validation to it's own function in schedule service 2013-03-06 09:58:35 -05:00
AddShowLiveStream.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
AddShowRR.php CC-1960: Internationalize Airtime / Support translations 2012-11-20 11:33:37 -05:00
AddShowRebroadcastDates.php - Moved all form validation to it's own function in schedule service 2013-03-06 09:58:35 -05:00
AddShowRepeats.php CC-5627: Check all Application_Common_DateHelper calculations that use 2013-12-11 15:54:13 -05:00
AddShowStyle.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
AddShowWhat.php Added instance description field 2014-09-19 12:55:02 -04:00
AddShowWhen.php CC-6064: Allow shows to be started "now" 2015-07-14 10:35:21 -04:00
AddShowWho.php CC-1960: Internationalize Airtime / Support translations 2012-11-20 11:33:37 -05:00
AddUser.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
BillingClient.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
BillingUpgradeDowngrade.php Holiday promo update for billing page 2015-12-08 15:44:41 -05:00
DangerousPreferences.php Dangerous options subform on Preferences page and Delete all tracks button 2015-05-13 15:56:08 -04:00
DateRange.php CC-1960: Internationalize Airtime / Support translations 2012-11-20 11:33:37 -05:00
EditAudioMD.php Some minor style changes for podcasting 2015-11-11 18:01:09 -05:00
EditHistory.php crlf fix 2013-08-12 15:08:09 -04:00
EditHistoryFile.php crlf fix 2013-08-12 15:08:09 -04:00
EditHistoryItem.php CC-5316 : Playout History: Doesn't support webstream 2013-09-30 13:56:27 -04:00
EditUser.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
GeneralPreferences.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
LiveStreamingPreferences.php Merge branch 'saas-dev' into saas-stream-settings 2015-07-08 12:47:24 -04:00
Login.php Set autofocus on login username field 2015-09-01 16:07:16 -04:00
PasswordChange.php More tweaks for password reset 2015-08-07 14:22:01 -04:00
PasswordRestore.php Clean up and bugfixes for password reset (SAAS-1009) 2015-08-07 13:57:42 -04:00
Player.php Player - fix height 2015-04-10 10:55:39 -04:00
PodcastPreferences.php SAAS-1234 - bind station feed url to angular data model 2015-11-19 17:09:49 -05:00
Preferences.php SAAS-1202 - move station podcast to top-level menu item 2015-11-13 14:57:32 -05:00
RegisterAirtime.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
ScheduleShow.php CC-4090: Make code style PSR compliant - part 4 2012-08-28 23:04:55 -04:00
SetupLanguageTimezone.php SAAS-945: Language + Timezone Setup Popup 2015-07-27 07:06:22 -04:00
ShowBuilder.php SAAS-1088 - move 'All My Shows' checkbox to dropdown instead 2015-09-30 11:38:33 -04:00
SmartBlockCriteria.php SAAS-1058: Podcast table schema 2015-09-14 17:00:54 -04:00
SoundCloudPreferences.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
StationPodcast.php CSS and display fixes 2015-11-16 12:07:53 -05:00
StreamSetting.php SAAS-876 - better implementation of toggle between Airtime Pro/Custom streaming options 2015-07-10 13:17:20 -04:00
StreamSettingSubForm.php Stream settings, Add Show form CSS revamp, etc. 2015-08-12 16:44:45 -04:00
SupportSettings.php Merge branch '2.5.x-albertenhancements' into saas 2015-01-15 16:32:29 -05:00
TuneInPreferences.php Vendorize ZF1, fix PHPUnit and configure travis 2017-02-27 17:59:01 +01:00
WatchedDirPreferences.php CC-1960: Internationalize Airtime / Support translations 2012-11-20 11:33:37 -05:00