#6096: replace all tabs and windows linebreaks
authorPhilipp Schüle <p.schuele@metaways.de>
Wed, 21 Mar 2012 13:31:21 +0000 (14:31 +0100)
committerPhilipp Schüle <p.schuele@metaways.de>
Wed, 21 Mar 2012 17:59:12 +0000 (18:59 +0100)
- tabs2spaces
- \r\n -> \n
- removed trailing whitespaces after "{" and ";"

https://forge.tine20.org/mantisbt/view.php?id=6096
Change-Id: I83bc467754c14e830892e109e40c6f469c4e596a
Reviewed-on: https://gerrit.tine20.org/tine20/374
Reviewed-by: Philipp Schüle <p.schuele@metaways.de>
Tested-by: jenkins user
Conflicts:

tine20/Tinebase/js/ux/form/ClearableComboBox.js

797 files changed:
tests/setup/Setup/Backend/AbstractTest.php
tests/setup/Setup/Backend/AllTests.php
tests/setup/Setup/Backend/MysqlTest.php
tests/setup/Setup/Backend/OracleTest.php
tests/setup/Setup/Backend/Schema/AllTests.php
tests/setup/Setup/Backend/Schema/FieldTest.php
tests/setup/Setup/Backend/Schema/TableTest.php
tests/setup/Setup/CoreTest.php
tests/setup/TestHelper.php
tests/tine20/ActiveSync/Backend/DeviceTests.php
tests/tine20/ActiveSync/Backend/PolicyTests.php
tests/tine20/ActiveSync/Backend/SyncStateTests.php
tests/tine20/ActiveSync/Command/FolderSyncTests.php
tests/tine20/ActiveSync/Command/PingTests.php
tests/tine20/ActiveSync/Command/SyncTests.php
tests/tine20/ActiveSync/Controller/CalendarTests.php
tests/tine20/ActiveSync/Controller/ContactsTests.php
tests/tine20/ActiveSync/Controller/DeviceTests.php
tests/tine20/ActiveSync/Controller/EmailTests.php
tests/tine20/ActiveSync/Controller/TasksTests.php
tests/tine20/ActiveSync/TestCase.php
tests/tine20/ActiveSync/TimezoneConverterTest.php
tests/tine20/Addressbook/Backend/SqlTest.php
tests/tine20/Addressbook/CliTest.php
tests/tine20/Addressbook/Controller/ListTest.php
tests/tine20/Addressbook/ControllerTest.php
tests/tine20/Addressbook/Convert/Contact/VCard/FactoryTest.php
tests/tine20/Addressbook/Convert/Contact/VCard/GenericTest.php
tests/tine20/Addressbook/Convert/Contact/VCard/IOSTest.php
tests/tine20/Addressbook/Convert/Contact/VCard/MacOSXTest.php
tests/tine20/Addressbook/Convert/Contact/VCard/SogoTest.php
tests/tine20/Addressbook/Frontend/CardDAVTest.php
tests/tine20/Addressbook/Frontend/WebDAV/ContactTest.php
tests/tine20/Addressbook/Frontend/WebDAV/ContainerTest.php
tests/tine20/Addressbook/Import/CsvTest.php
tests/tine20/Addressbook/Import/VCardTest.php
tests/tine20/Addressbook/JsonTest.php
tests/tine20/Addressbook/ListControllerTest.php
tests/tine20/Addressbook/PdfTest.php
tests/tine20/Admin/Acl/RightsTest.php
tests/tine20/Admin/CliTest.php
tests/tine20/Admin/ControllerTest.php
tests/tine20/Admin/JsonTest.php
tests/tine20/Calendar/Backend/SqlTest.php
tests/tine20/Calendar/Controller/EventGrantsTests.php
tests/tine20/Calendar/Controller/EventTests.php
tests/tine20/Calendar/Controller/RecurTest.php
tests/tine20/Calendar/Convert/Event/VCalendar/FactoryTest.php
tests/tine20/Calendar/Convert/Event/VCalendar/GenericTest.php
tests/tine20/Calendar/Convert/Event/VCalendar/MacOSXTest.php
tests/tine20/Calendar/Convert/Event/VCalendar/ThunderbirdTest.php
tests/tine20/Calendar/Export/ICalTest.php
tests/tine20/Calendar/Frontend/CalDAVTest.php
tests/tine20/Calendar/Frontend/WebDAV/ContainerTest.php
tests/tine20/Calendar/Frontend/iMIPTest.php
tests/tine20/Calendar/Import/ICalTest.php
tests/tine20/Calendar/JsonTests.php
tests/tine20/Calendar/Model/AttenderTests.php
tests/tine20/Calendar/TestCase.php
tests/tine20/Courses/JsonTest.php
tests/tine20/Crm/AbstractTest.php
tests/tine20/Crm/Backend/LeadTest.php
tests/tine20/Crm/ControllerTest.php
tests/tine20/Crm/Export/AbstractTest.php
tests/tine20/Crm/Export/OdsTest.php
tests/tine20/Crm/Export/PdfTest.php
tests/tine20/Crm/Export/XlsTest.php
tests/tine20/Crm/JsonTest.php
tests/tine20/Felamimail/Controller/AccountTest.php
tests/tine20/Felamimail/Controller/Cache/MessageTest.php
tests/tine20/Felamimail/Controller/FolderTest.php
tests/tine20/Felamimail/Controller/MessageTest.php
tests/tine20/Felamimail/JsonTest.php
tests/tine20/Felamimail/Model/AccountTest.php
tests/tine20/Felamimail/Model/MessageTest.php
tests/tine20/Felamimail/Sieve/Backend/ScriptTest.php
tests/tine20/Filemanager/Frontend/JsonTests.php
tests/tine20/Filemanager/Frontend/WebDAVTest.php
tests/tine20/Phone/Backend/Snom/CallhistoryTest.php
tests/tine20/Phone/ControllerTest.php
tests/tine20/Phone/JsonTest.php
tests/tine20/Projects/JsonTest.php
tests/tine20/Sales/Backend/ContractTest.php
tests/tine20/Sales/Backend/NumberTest.php
tests/tine20/Sales/ControllerTest.php
tests/tine20/Sales/JsonTest.php
tests/tine20/Scheduler/SchedulerTest.php
tests/tine20/Tasks/Backend/SqlTest.php
tests/tine20/Tasks/ControllerTest.php
tests/tine20/Tasks/JsonTest.php
tests/tine20/Tasks/Model/TaskFilterTest.php
tests/tine20/Timetracker/AbstractTest.php
tests/tine20/Timetracker/ControllerTest.php
tests/tine20/Timetracker/ExportTest.php
tests/tine20/Tinebase/AccountTest.php
tests/tine20/Tinebase/Acl/RightsTest.php
tests/tine20/Tinebase/Acl/RolesTest.php
tests/tine20/Tinebase/ApplicationTest.php
tests/tine20/Tinebase/AsyncJobTest.php
tests/tine20/Tinebase/AuthTest.php
tests/tine20/Tinebase/ConfigTest.php
tests/tine20/Tinebase/ContainerTest.php
tests/tine20/Tinebase/DateTimeTest.php
tests/tine20/Tinebase/FileSystem/StreamWrapperTest.php
tests/tine20/Tinebase/FileSystemTest.php
tests/tine20/Tinebase/Frontend/CliTest.php
tests/tine20/Tinebase/Frontend/Json/ContainerTest.php
tests/tine20/Tinebase/Frontend/JsonTest.php
tests/tine20/Tinebase/Group/LdapTest.php
tests/tine20/Tinebase/Group/SqlTest.php
tests/tine20/Tinebase/GroupTest.php
tests/tine20/Tinebase/HelperTests.php
tests/tine20/Tinebase/NotesTest.php
tests/tine20/Tinebase/Record/AbstractTest.php
tests/tine20/Tinebase/Record/ContainerTest.php
tests/tine20/Tinebase/Record/PersistentObserverTest.php
tests/tine20/Tinebase/Record/RecordSetTest.php
tests/tine20/Tinebase/Record/RecordTest.php
tests/tine20/Tinebase/Relation/Backend/SqlTest.php
tests/tine20/Tinebase/Scheduler/SchedulerTest.php
tests/tine20/Tinebase/TranslationTest.php
tests/tine20/Tinebase/Tree/FileObjectTest.php
tests/tine20/Tinebase/Tree/NodeTest.php
tests/tine20/Tinebase/User/AbstractTest.php
tests/tine20/Tinebase/User/EmailUser/Imap/CyrusTest.php
tests/tine20/Tinebase/User/EmailUser/Imap/DbmailTest.php
tests/tine20/Tinebase/User/EmailUser/Imap/DovecotTest.php
tests/tine20/Tinebase/User/EmailUser/Imap/LdapDbmailSchemaTest.php
tests/tine20/Tinebase/User/EmailUser/Smtp/PostfixTest.php
tests/tine20/Tinebase/User/LdapTest.php
tests/tine20/Tinebase/User/ModelTest.php
tests/tine20/Tinebase/User/Plugin/SambaTest.php
tests/tine20/Tinebase/User/RegistrationTest.php
tests/tine20/Tinebase/User/SqlTest.php
tests/tine20/Tinebase/UserTest.php
tests/tine20/Tinebase/WebDav/PrincipalBackendTest.php
tests/tine20/Tinebase/ZendFilterTest.php
tests/tine20/Voipmanager/Backend/Snom/PhoneTest.php
tests/tine20/Voipmanager/ControllerTest.php
tests/tine20/Voipmanager/JsonTest.php
tine20/ActiveSync/Backend/FolderFacade.php
tine20/ActiveSync/Controller.php
tine20/ActiveSync/Controller/Abstract.php
tine20/ActiveSync/Controller/Calendar.php
tine20/ActiveSync/Controller/Contacts.php
tine20/ActiveSync/Controller/Device.php
tine20/ActiveSync/Controller/Email.php
tine20/ActiveSync/Model/ContentState.php
tine20/ActiveSync/Model/ContentStateFilter.php
tine20/ActiveSync/Model/Device.php
tine20/ActiveSync/Model/DeviceFilter.php
tine20/ActiveSync/Model/Folder.php
tine20/ActiveSync/Model/FolderFilter.php
tine20/ActiveSync/Model/SyncState.php
tine20/ActiveSync/Setup/Update/Release0.php
tine20/ActiveSync/Setup/Update/Release5.php
tine20/ActiveSync/TimezoneConverter.php
tine20/ActiveSync/js/Application.js
tine20/Addressbook/Acl/Rights.php
tine20/Addressbook/Backend/Factory.php
tine20/Addressbook/Backend/List.php
tine20/Addressbook/Controller.php
tine20/Addressbook/Controller/Contact.php
tine20/Addressbook/Controller/List.php
tine20/Addressbook/Convert/Contact/String.php
tine20/Addressbook/Convert/Contact/VCard/Factory.php
tine20/Addressbook/Export/Csv.php
tine20/Addressbook/Export/FritzBox.php
tine20/Addressbook/Export/Ods.php
tine20/Addressbook/Export/Pdf.php
tine20/Addressbook/Frontend/CardDAV.php
tine20/Addressbook/Frontend/Cli.php
tine20/Addressbook/Frontend/Json.php
tine20/Addressbook/Frontend/WebDAV/Container.php
tine20/Addressbook/Import/VCard.php
tine20/Addressbook/Model/Contact.php
tine20/Addressbook/Model/ContactFilter.php
tine20/Addressbook/Model/ListFilter.php
tine20/Addressbook/Model/Salutation.php
tine20/Addressbook/Preference.php
tine20/Addressbook/Setup/Import/Egw14.php
tine20/Addressbook/Setup/Initialize.php
tine20/Addressbook/Setup/Update/Release0.php
tine20/Addressbook/Setup/Update/Release3.php
tine20/Addressbook/Setup/Update/Release5.php
tine20/Addressbook/js/Addressbook.js
tine20/Addressbook/js/ContactEditDialog.js
tine20/Addressbook/js/ContactGrid.js
tine20/Addressbook/js/MapPanel.js
tine20/Addressbook/js/Model.js
tine20/Addressbook/js/SearchCombo.js
tine20/Admin/Controller.php
tine20/Admin/Controller/AccessLog.php
tine20/Admin/Controller/Application.php
tine20/Admin/Controller/Container.php
tine20/Admin/Controller/Customfield.php
tine20/Admin/Controller/Group.php
tine20/Admin/Controller/Role.php
tine20/Admin/Controller/SambaMachine.php
tine20/Admin/Controller/Tags.php
tine20/Admin/Controller/User.php
tine20/Admin/Frontend/Json.php
tine20/Admin/Import/Csv.php
tine20/Admin/Model/Config.php
tine20/Admin/Model/SambaMachine.php
tine20/Admin/Setup/Initialize.php
tine20/Admin/js/AccessLog.js
tine20/Admin/js/Admin.js
tine20/Admin/js/Applications.js
tine20/Admin/js/GroupEditDialog.js
tine20/Admin/js/Groups.js
tine20/Admin/js/RoleEditDialog.js
tine20/Admin/js/Roles.js
tine20/Admin/js/SambaMachineGrid.js
tine20/Admin/js/TagEditDialog.js
tine20/Admin/js/Tags.js
tine20/Admin/js/container/Container.js
tine20/Admin/js/container/EditDialog.js
tine20/Admin/js/container/GridPanel.js
tine20/Admin/js/customfield/Customfield.js
tine20/Admin/js/customfield/EditDialog.js
tine20/Admin/js/customfield/GridPanel.js
tine20/Admin/js/user/EditDialog.js
tine20/Admin/js/user/GridPanel.js
tine20/Admin/js/user/Users.js
tine20/Calendar/Acl/Rights.php
tine20/Calendar/Backend/Sql.php
tine20/Calendar/Controller.php
tine20/Calendar/Controller/Event.php
tine20/Calendar/Controller/EventNotifications.php
tine20/Calendar/Controller/Resource.php
tine20/Calendar/Convert/Event/VCalendar/Factory.php
tine20/Calendar/Convert/Event/VCalendar/Generic.php
tine20/Calendar/Convert/Event/VCalendar/Iphone.php
tine20/Calendar/Convert/Event/VCalendar/KDE.php
tine20/Calendar/Convert/Event/VCalendar/MacOSX.php
tine20/Calendar/Exception/AttendeeBusy.php
tine20/Calendar/Exception/IcalParser.php
tine20/Calendar/Exception/iMIP.php
tine20/Calendar/Frontend/CalDAV.php
tine20/Calendar/Frontend/CalDAV/ScheduleInbox.php
tine20/Calendar/Frontend/CalDAV/ScheduleOutbox.php
tine20/Calendar/Frontend/Cli.php
tine20/Calendar/Frontend/Json.php
tine20/Calendar/Frontend/WebDAV/Backend.php
tine20/Calendar/Frontend/WebDAV/Container.php
tine20/Calendar/Frontend/WebDAV/Event.php
tine20/Calendar/Frontend/iMIP.php
tine20/Calendar/Model/AttenderFilter.php
tine20/Calendar/Model/Event.php
tine20/Calendar/Model/FreeBusy.php
tine20/Calendar/Model/Rrule.php
tine20/Calendar/Model/iMIP.php
tine20/Calendar/Setup/Initialize.php
tine20/Calendar/Setup/Update/Release0.php
tine20/Calendar/js/AddToEventPanel.js
tine20/Calendar/js/AddressbookGridPanelHook.js
tine20/Calendar/js/AdminPanel.js
tine20/Calendar/js/AttendeeFilterModel.js
tine20/Calendar/js/ContactEventsGridPanel.js
tine20/Calendar/js/DaysView.js
tine20/Calendar/js/EventDetailsPanel.js
tine20/Calendar/js/EventEditDialog.js
tine20/Calendar/js/EventUI.js
tine20/Calendar/js/GridView.js
tine20/Calendar/js/MainScreenCenterPanel.js
tine20/Calendar/js/MonthView.js
tine20/Calendar/js/ResourceEditDialog.js
tine20/Calendar/js/RrulePanel.js
tine20/Calendar/js/SearchCombo.js
tine20/Courses/Controller.php
tine20/Courses/Controller/Course.php
tine20/Courses/Frontend/Json.php
tine20/Courses/Model/Course.php
tine20/Courses/Preference.php
tine20/Courses/Setup/Initialize.php
tine20/Courses/js/CourseEditDialog.js
tine20/Courses/js/CourseGridPanel.js
tine20/Courses/js/Models.js
tine20/Crm/Acl/Rights.php
tine20/Crm/Backend/Lead.php
tine20/Crm/Controller.php
tine20/Crm/Controller/Lead.php
tine20/Crm/Export/Csv.php
tine20/Crm/Export/Helper.php
tine20/Crm/Export/Ods.php
tine20/Crm/Export/Pdf.php
tine20/Crm/Export/Xls.php
tine20/Crm/Frontend/Http.php
tine20/Crm/Frontend/Json.php
tine20/Crm/Model/Config.php
tine20/Crm/Model/Lead.php
tine20/Crm/Preference.php
tine20/Crm/Setup/Update/Release0.php
tine20/Crm/Setup/Update/Release2.php
tine20/Crm/js/AddToLeadPanel.js
tine20/Crm/js/AddressbookGridPanelHook.js
tine20/Crm/js/AdminPanel.js
tine20/Crm/js/Contact.js
tine20/Crm/js/Crm.js
tine20/Crm/js/GridPanel.js
tine20/Crm/js/LeadEditDialog.js
tine20/Crm/js/LeadGridDetailsPanel.js
tine20/Crm/js/LeadSource.js
tine20/Crm/js/LeadState.js
tine20/Crm/js/LeadType.js
tine20/Crm/js/LinkGridPanel.js
tine20/Crm/js/Product.js
tine20/Crm/js/SearchCombo.js
tine20/Crm/js/Task.js
tine20/ExampleApplication/Controller.php
tine20/ExampleApplication/Controller/ExampleRecord.php
tine20/ExampleApplication/Frontend/Json.php
tine20/ExampleApplication/Model/ExampleRecord.php
tine20/ExampleApplication/Model/ExampleRecordFilter.php
tine20/ExampleApplication/js/ExampleRecordEditDialog.js
tine20/ExampleApplication/js/ExampleRecordGridPanel.js
tine20/ExampleApplication/js/Model.js
tine20/Felamimail/Acl/Rights.php
tine20/Felamimail/Backend/Imap.php
tine20/Felamimail/Backend/ImapProxy.php
tine20/Felamimail/Controller.php
tine20/Felamimail/Controller/Account.php
tine20/Felamimail/Controller/Cache/Folder.php
tine20/Felamimail/Controller/Cache/Message.php
tine20/Felamimail/Controller/Folder.php
tine20/Felamimail/Controller/Message.php
tine20/Felamimail/Controller/Message/Flags.php
tine20/Felamimail/Controller/Message/Move.php
tine20/Felamimail/Controller/Message/Send.php
tine20/Felamimail/Controller/Sieve.php
tine20/Felamimail/Exception/IMAPInvalidCredentials.php
tine20/Felamimail/Frontend/Http.php
tine20/Felamimail/Frontend/Json.php
tine20/Felamimail/Message.php
tine20/Felamimail/Model/Account.php
tine20/Felamimail/Model/Folder.php
tine20/Felamimail/Model/Message.php
tine20/Felamimail/Model/MessageFilter.php
tine20/Felamimail/Model/PreparedMessagePart.php
tine20/Felamimail/Model/Sieve/Rule.php
tine20/Felamimail/Model/Sieve/Vacation.php
tine20/Felamimail/Setup/Update/Release2.php
tine20/Felamimail/Sieve/Backend/Script.php
tine20/Felamimail/Sieve/Rule/Action.php
tine20/Felamimail/Sieve/Rule/Condition.php
tine20/Felamimail/Sieve/Vacation.php
tine20/Felamimail/Transport.php
tine20/Felamimail/js/AccountEditDialog.js
tine20/Felamimail/js/ComposeEditor.js
tine20/Felamimail/js/ContactGrid.js
tine20/Felamimail/js/Felamimail.js
tine20/Felamimail/js/FolderSelectPanel.js
tine20/Felamimail/js/FolderStore.js
tine20/Felamimail/js/GridDetailsPanel.js
tine20/Felamimail/js/GridPanel.js
tine20/Felamimail/js/MessageDisplayDialog.js
tine20/Felamimail/js/MimeDisplayManager.js
tine20/Felamimail/js/Model.js
tine20/Felamimail/js/RecipientGrid.js
tine20/Felamimail/js/RecipientPickerFavoritePanel.js
tine20/Felamimail/js/TreeLoader.js
tine20/Felamimail/js/TreePanel.js
tine20/Felamimail/js/sieve/RuleEditDialog.js
tine20/Felamimail/js/sieve/RulesDialog.js
tine20/Felamimail/js/sieve/RulesGridPanel.js
tine20/Filemanager/Acl/Rights.php
tine20/Filemanager/Controller.php
tine20/Filemanager/Controller/Node.php
tine20/Filemanager/Frontend/Json.php
tine20/Filemanager/Frontend/WebDAV/Container.php
tine20/Filemanager/js/Filemanager.js
tine20/Filemanager/js/GridContextMenu.js
tine20/Filemanager/js/GridPanel.js
tine20/Filemanager/js/Model.js
tine20/Filemanager/js/TreePanel.js
tine20/Phone/Backend/Factory.php
tine20/Phone/Backend/Snom/Webserver.php
tine20/Phone/Controller.php
tine20/Phone/Controller/MyPhone.php
tine20/Phone/Frontend/Http.php
tine20/Phone/Frontend/Json.php
tine20/Phone/Frontend/Snom.php
tine20/Phone/Model/Call.php
tine20/Phone/Model/MyPhone.php
tine20/Phone/Setup/Update/Release0.php
tine20/Phone/js/Phone.js
tine20/Projects/Controller.php
tine20/Projects/Controller/Project.php
tine20/Projects/Frontend/Json.php
tine20/Projects/Model/Project.php
tine20/Projects/Model/ProjectFilter.php
tine20/Projects/Preference.php
tine20/Projects/js/AddToProjectPanel.js
tine20/Projects/js/AddressbookGridPanelHook.js
tine20/Projects/js/Model.js
tine20/Projects/js/ProjectEditDialog.js
tine20/Projects/js/ProjectGridPanel.js
tine20/Projects/js/SearchCombo.js
tine20/RequestTracker/Backend/Rest.php
tine20/Sales/Acl/Rights.php
tine20/Sales/Backend/Number.php
tine20/Sales/Controller/Contract.php
tine20/Sales/Controller/Product.php
tine20/Sales/Model/Config.php
tine20/Sales/Model/Contract.php
tine20/Sales/Model/ContractFilter.php
tine20/Sales/Model/Number.php
tine20/Sales/Model/ProductFilter.php
tine20/Sales/js/ContractEditDialog.js
tine20/Sales/js/Models.js
tine20/Sales/js/ProductEditDialog.js
tine20/Sales/js/ProductGridPanel.js
tine20/Setup/Backend/Abstract.php
tine20/Setup/Backend/Interface.php
tine20/Setup/Backend/Mysql.php
tine20/Setup/Backend/Oracle.php
tine20/Setup/Backend/Pgsql.php
tine20/Setup/Backend/Schema/Field/Abstract.php
tine20/Setup/Backend/Schema/Field/Mysql.php
tine20/Setup/Backend/Schema/Field/Oracle.php
tine20/Setup/Backend/Schema/Field/Pgsql.php
tine20/Setup/Backend/Schema/Field/Xml.php
tine20/Setup/Backend/Schema/Index/Mysql.php
tine20/Setup/Backend/Schema/Index/Oracle.php
tine20/Setup/Backend/Schema/Index/Pgsql.php
tine20/Setup/Backend/Schema/Table/Oracle.php
tine20/Setup/Controller.php
tine20/Setup/Core.php
tine20/Setup/ExtCheck.php
tine20/Setup/Frontend/Cli.php
tine20/Setup/Frontend/Http.php
tine20/Setup/Frontend/Json.php
tine20/Setup/Initialize.php
tine20/Setup/Server/Cli.php
tine20/Setup/Server/Json.php
tine20/Setup/Update/Abstract.php
tine20/Setup/js/ApplicationGridPanel.js
tine20/Setup/js/ConfigManagerPanel.js
tine20/Setup/js/EmailPanel.js
tine20/Setup/js/EnvCheckGridPanel.js
tine20/SimpleFAQ/Exception.php
tine20/SimpleFAQ/js/FaqStatus.js
tine20/SimpleFAQ/js/FaqType.js
tine20/Sipgate/Backend/Api.php
tine20/Sipgate/Backend/Factory.php
tine20/Sipgate/Controller.php
tine20/Sipgate/Exception.php
tine20/Sipgate/Frontend/Json.php
tine20/Sipgate/Preference.php
tine20/Sipgate/js/AddressbookGridPanelHook.js
tine20/Sipgate/js/CallStateWindow.js
tine20/Sipgate/js/SearchAddressDialog.js
tine20/Sipgate/js/Sipgate.js
tine20/Tasks/Acl/Rights.php
tine20/Tasks/Backend/Sql.php
tine20/Tasks/Controller.php
tine20/Tasks/Controller/Task.php
tine20/Tasks/Frontend/Json.php
tine20/Tasks/Model/Pagination.php
tine20/Tasks/Preference.php
tine20/Tasks/Setup/Initialize.php
tine20/Tasks/Setup/MigrateFromEgw14.php
tine20/Tasks/Setup/Update/Release5.php
tine20/Tasks/js/GridPanel.js
tine20/Tasks/js/TaskEditDialog.js
tine20/Timetracker/Acl/Rights.php
tine20/Timetracker/Controller.php
tine20/Timetracker/Controller/Timeaccount.php
tine20/Timetracker/Controller/Timesheet.php
tine20/Timetracker/Export/Csv.php
tine20/Timetracker/Export/Ods/Timesheet.php
tine20/Timetracker/Model/Timeaccount.php
tine20/Timetracker/Model/TimeaccountGrants.php
tine20/Timetracker/Model/Timesheet.php
tine20/Timetracker/Preference.php
tine20/Timetracker/Setup/Import/Egw14.php
tine20/Timetracker/Setup/Update/Release2.php
tine20/Timetracker/Setup/Update/Release5.php
tine20/Timetracker/js/DurationSpinner.js
tine20/Timetracker/js/Models.js
tine20/Timetracker/js/TimeaccountEditDialog.js
tine20/Timetracker/js/TimeaccountGridPanel.js
tine20/Timetracker/js/TimesheetEditDialog.js
tine20/Timetracker/js/TimesheetGridPanel.js
tine20/Tinebase/Acl/Rights.php
tine20/Tinebase/Acl/Roles.php
tine20/Tinebase/ActionQueue.php
tine20/Tinebase/Alarm.php
tine20/Tinebase/Application.php
tine20/Tinebase/AsyncJob.php
tine20/Tinebase/Auth.php
tine20/Tinebase/Auth/CredentialCache/Adapter/Cookie.php
tine20/Tinebase/Auth/Imap.php
tine20/Tinebase/Auth/Ldap.php
tine20/Tinebase/Auth/Sql.php
tine20/Tinebase/Backend/Sql/Abstract.php
tine20/Tinebase/Backend/Sql/Command.php
tine20/Tinebase/Container.php
tine20/Tinebase/Controller.php
tine20/Tinebase/Controller/Abstract.php
tine20/Tinebase/Controller/Interface.php
tine20/Tinebase/Controller/Record/Interface.php
tine20/Tinebase/Controller/SearchInterface.php
tine20/Tinebase/Convert/Factory.php
tine20/Tinebase/Convert/Interface.php
tine20/Tinebase/Core.php
tine20/Tinebase/CustomField.php
tine20/Tinebase/Department.php
tine20/Tinebase/Department/Sql.php
tine20/Tinebase/EmailUser/Imap/Cyrus.php
tine20/Tinebase/EmailUser/Imap/Dbmail.php
tine20/Tinebase/EmailUser/Imap/Dovecot.php
tine20/Tinebase/EmailUser/Imap/LdapDbmailSchema.php
tine20/Tinebase/EmailUser/Ldap.php
tine20/Tinebase/EmailUser/Smtp/LdapDbmailSchema.php
tine20/Tinebase/EmailUser/Smtp/Postfix.php
tine20/Tinebase/Event.php
tine20/Tinebase/Exception/Data.php
tine20/Tinebase/Exception/NotFound.php
tine20/Tinebase/Export/Abstract.php
tine20/Tinebase/Export/Csv.php
tine20/Tinebase/Export/Pdf.php
tine20/Tinebase/Export/Spreadsheet/Abstract.php
tine20/Tinebase/Export/Spreadsheet/Ods.php
tine20/Tinebase/Export/Spreadsheet/Xls.php
tine20/Tinebase/FileSystem.php
tine20/Tinebase/Frontend/Cli.php
tine20/Tinebase/Frontend/Cli/Abstract.php
tine20/Tinebase/Frontend/Http.php
tine20/Tinebase/Frontend/Http/Abstract.php
tine20/Tinebase/Frontend/Json/Container.php
tine20/Tinebase/Frontend/Json/PersistentFilter.php
tine20/Tinebase/Frontend/Json/UserRegistration.php
tine20/Tinebase/Group.php
tine20/Tinebase/Group/ActiveDirectory.php
tine20/Tinebase/Group/Ldap.php
tine20/Tinebase/Group/LdapPlugin/Samba.php
tine20/Tinebase/Group/Sql.php
tine20/Tinebase/Group/Typo3.php
tine20/Tinebase/Helper.php
tine20/Tinebase/Http/Server.php
tine20/Tinebase/ImportExportDefinition.php
tine20/Tinebase/Ldap.php
tine20/Tinebase/Log/Filter/User.php
tine20/Tinebase/Model/AccessLog.php
tine20/Tinebase/Model/Application.php
tine20/Tinebase/Model/Config.php
tine20/Tinebase/Model/Container.php
tine20/Tinebase/Model/CustomField/Config.php
tine20/Tinebase/Model/CustomField/ConfigFilter.php
tine20/Tinebase/Model/CustomField/Grant.php
tine20/Tinebase/Model/CustomField/Value.php
tine20/Tinebase/Model/Department.php
tine20/Tinebase/Model/Filter/Bool.php
tine20/Tinebase/Model/Filter/Date.php
tine20/Tinebase/Model/Filter/DateTime.php
tine20/Tinebase/Model/Filter/FilterGroup.php
tine20/Tinebase/Model/Filter/Relation.php
tine20/Tinebase/Model/Filter/Tag.php
tine20/Tinebase/Model/Grants.php
tine20/Tinebase/Model/GroupFilter.php
tine20/Tinebase/Model/ImportExportDefinition.php
tine20/Tinebase/Model/Note.php
tine20/Tinebase/Model/NoteFilter.php
tine20/Tinebase/Model/NoteType.php
tine20/Tinebase/Model/OpenId/TrustedSite.php
tine20/Tinebase/Model/Pagination.php
tine20/Tinebase/Model/PersistentFilter.php
tine20/Tinebase/Model/PersistentFilterFilter.php
tine20/Tinebase/Model/PersistentObserver.php
tine20/Tinebase/Model/PreferenceAccountFilter.php
tine20/Tinebase/Model/Registration.php
tine20/Tinebase/Model/SAMUser.php
tine20/Tinebase/Model/Tag.php
tine20/Tinebase/Model/TagFilter.php
tine20/Tinebase/Model/TagRight.php
tine20/Tinebase/Model/Tree/FileObject.php
tine20/Tinebase/Model/Tree/Node/Path.php
tine20/Tinebase/Model/UpdateMultipleException.php
tine20/Tinebase/Model/User.php
tine20/Tinebase/Notes.php
tine20/Tinebase/OpenId/Backend/Association.php
tine20/Tinebase/OpenId/Backend/TrustedSite.php
tine20/Tinebase/OpenId/Provider/Storage.php
tine20/Tinebase/Preference/Abstract.php
tine20/Tinebase/Record/Abstract.php
tine20/Tinebase/Record/Event/Abstract.php
tine20/Tinebase/Record/Interface.php
tine20/Tinebase/Record/PersistentObserver.php
tine20/Tinebase/Record/RecordSet.php
tine20/Tinebase/Relation/Backend/Sql.php
tine20/Tinebase/Relations.php
tine20/Tinebase/SambaSAM.php
tine20/Tinebase/Scheduler/Task.php
tine20/Tinebase/Server/Cli.php
tine20/Tinebase/Server/Http.php
tine20/Tinebase/Server/Json.php
tine20/Tinebase/Server/WebDAV.php
tine20/Tinebase/Setup/Update/Release0.php
tine20/Tinebase/Setup/Update/Release1.php
tine20/Tinebase/Setup/Update/Release2.php
tine20/Tinebase/Setup/Update/Release3.php
tine20/Tinebase/Setup/Update/Release4.php
tine20/Tinebase/Smtp.php
tine20/Tinebase/State.php
tine20/Tinebase/Tags.php
tine20/Tinebase/TempFile.php
tine20/Tinebase/Timemachine/ModificationLog.php
tine20/Tinebase/Translation.php
tine20/Tinebase/Tree/Node.php
tine20/Tinebase/User.php
tine20/Tinebase/User/Abstract.php
tine20/Tinebase/User/ActiveDirectory.php
tine20/Tinebase/User/Interface/SyncAble.php
tine20/Tinebase/User/Ldap.php
tine20/Tinebase/User/LdapPlugin/Interface.php
tine20/Tinebase/User/Plugin/Abstract.php
tine20/Tinebase/User/Plugin/LdapAbstract.php
tine20/Tinebase/User/Plugin/Samba.php
tine20/Tinebase/User/Plugin/SqlInterface.php
tine20/Tinebase/User/Registration.php
tine20/Tinebase/User/Sql.php
tine20/Tinebase/WebDav/Collection/Abstract.php
tine20/Tinebase/WebDav/PrincipalBackend.php
tine20/Tinebase/js/AdminPanel.js
tine20/Tinebase/js/AppManager.js
tine20/Tinebase/js/AppTabsPanel.js
tine20/Tinebase/js/Container.js
tine20/Tinebase/js/ExceptionDialog.js
tine20/Tinebase/js/Locale/static/generic-pa.js
tine20/Tinebase/js/Locale/static/generic-pa_IN.js
tine20/Tinebase/js/Locale/static/generic-pa_PK.js
tine20/Tinebase/js/LoginPanel.js
tine20/Tinebase/js/MainMenu.js
tine20/Tinebase/js/MainScreen.js
tine20/Tinebase/js/PasswordChangeDialog.js
tine20/Tinebase/js/UserRegistration.js
tine20/Tinebase/js/common.js
tine20/Tinebase/js/data/RecordProxy.js
tine20/Tinebase/js/data/schemaProc/sqlGenerator.js
tine20/Tinebase/js/extFixes.js
tine20/Tinebase/js/extInit.js
tine20/Tinebase/js/tine20-loginbox.js
tine20/Tinebase/js/tineInit.js
tine20/Tinebase/js/ux/DatepickerRange.js
tine20/Tinebase/js/ux/GMapPanel.js
tine20/Tinebase/js/ux/Percentage.js
tine20/Tinebase/js/ux/PopupWindow.js
tine20/Tinebase/js/ux/PopupWindowManager.js
tine20/Tinebase/js/ux/Printer/Printer-all.js
tine20/Tinebase/js/ux/Printer/renderers/Base.js
tine20/Tinebase/js/ux/Printer/renderers/ColumnTree.js
tine20/Tinebase/js/ux/Printer/renderers/GridPanel.js
tine20/Tinebase/js/ux/TabPanelSortPlugin.js
tine20/Tinebase/js/ux/Wizard.js
tine20/Tinebase/js/ux/data/windowNameConnection.js
tine20/Tinebase/js/ux/file/BrowsePlugin.js
tine20/Tinebase/js/ux/file/Download.js
tine20/Tinebase/js/ux/file/Upload.js
tine20/Tinebase/js/ux/file/UploadManager.js
tine20/Tinebase/js/ux/form/ClearableComboBox.js
tine20/Tinebase/js/ux/form/ClearableDateField.js
tine20/Tinebase/js/ux/form/ClearableTextField.js
tine20/Tinebase/js/ux/form/DateTimeField.js
tine20/Tinebase/js/ux/form/HtmlEditor.js
tine20/Tinebase/js/ux/form/ImageCropper.js
tine20/Tinebase/js/ux/form/ImageField.js
tine20/Tinebase/js/ux/form/ImgCheckbox.js
tine20/Tinebase/js/ux/form/LayerCombo.js
tine20/Tinebase/js/ux/form/LockCombo.js
tine20/Tinebase/js/ux/form/LockTextfield.js
tine20/Tinebase/js/ux/form/RecordsComboBox.js
tine20/Tinebase/js/ux/form/Spinner.js
tine20/Tinebase/js/ux/form/SpinnerStrategy.js
tine20/Tinebase/js/ux/grid/CheckColumn.js
tine20/Tinebase/js/ux/grid/QuickaddGridPanel.js
tine20/Tinebase/js/widgets/ActivitiesPanel.js
tine20/Tinebase/js/widgets/ContentTypeTreePanel.js
tine20/Tinebase/js/widgets/EditRecord.js
tine20/Tinebase/js/widgets/MainScreen.js
tine20/Tinebase/js/widgets/MapPanel.js
tine20/Tinebase/js/widgets/TimezoneChooser.js
tine20/Tinebase/js/widgets/account/PickerGridPanel.js
tine20/Tinebase/js/widgets/container/ContainerSelect.js
tine20/Tinebase/js/widgets/container/FilterModel.js
tine20/Tinebase/js/widgets/container/GrantsDialog.js
tine20/Tinebase/js/widgets/customfields/CustomfieldSearchCombo.js
tine20/Tinebase/js/widgets/customfields/CustomfieldsCombo.js
tine20/Tinebase/js/widgets/customfields/Field.js
tine20/Tinebase/js/widgets/customfields/Renderer.js
tine20/Tinebase/js/widgets/dialog/AdminPanel.js
tine20/Tinebase/js/widgets/dialog/AlarmPanel.js
tine20/Tinebase/js/widgets/dialog/DuplicateMergeDialog.js
tine20/Tinebase/js/widgets/dialog/EditDialog.js
tine20/Tinebase/js/widgets/dialog/FileListDialog.js
tine20/Tinebase/js/widgets/dialog/LinkPanel.js
tine20/Tinebase/js/widgets/dialog/MultipleEditDialogPlugin.js
tine20/Tinebase/js/widgets/dialog/MultipleEditResultSummary.js
tine20/Tinebase/js/widgets/dialog/PreferencesDialog.js
tine20/Tinebase/js/widgets/dialog/PreferencesTreePanel.js
tine20/Tinebase/js/widgets/form/RecordPickerComboBox.js
tine20/Tinebase/js/widgets/form/RecordPickerManager.js
tine20/Tinebase/js/widgets/grid/DetailsPanel.js
tine20/Tinebase/js/widgets/grid/ExportButton.js
tine20/Tinebase/js/widgets/grid/FileUploadGrid.js
tine20/Tinebase/js/widgets/grid/FilterModel.js
tine20/Tinebase/js/widgets/grid/FilterToolbar.js
tine20/Tinebase/js/widgets/grid/ForeignRecordFilter.js
tine20/Tinebase/js/widgets/grid/GridPanel.js
tine20/Tinebase/js/widgets/grid/PickerFilter.js
tine20/Tinebase/js/widgets/grid/PickerGridPanel.js
tine20/Tinebase/js/widgets/grid/QuickaddGridPanel.js
tine20/Tinebase/js/widgets/mainscreen/WestPanel.js
tine20/Tinebase/js/widgets/persistentfilter/PickerPanel.js
tine20/Tinebase/js/widgets/tags/TagToggleBox.js
tine20/Tinebase/js/widgets/tags/TagsPanel.js
tine20/Tinebase/js/widgets/tree/ContextMenu.js
tine20/Tinebase/views/activate.php
tine20/Tinebase/views/lostpwMailHtml.php
tine20/Tinebase/views/lostpwMailPlain.php
tine20/Tinebase/views/registrationMailHtml.php
tine20/Tinebase/views/update.php
tine20/Voipmanager/Backend/Asterisk/Meetme.php
tine20/Voipmanager/Backend/Asterisk/SipPeer.php
tine20/Voipmanager/Backend/Asterisk/Voicemail.php
tine20/Voipmanager/Backend/Snom/Phone.php
tine20/Voipmanager/Backend/Snom/Xml.php
tine20/Voipmanager/Controller/Asterisk/Context.php
tine20/Voipmanager/Controller/Asterisk/Meetme.php
tine20/Voipmanager/Controller/Asterisk/SipPeer.php
tine20/Voipmanager/Controller/Asterisk/Voicemail.php
tine20/Voipmanager/Controller/Snom/Line.php
tine20/Voipmanager/Controller/Snom/Location.php
tine20/Voipmanager/Controller/Snom/Phone.php
tine20/Voipmanager/Controller/Snom/PhoneSettings.php
tine20/Voipmanager/Controller/Snom/Setting.php
tine20/Voipmanager/Controller/Snom/Software.php
tine20/Voipmanager/Controller/Snom/Template.php
tine20/Voipmanager/Controller/Snom/Xml.php
tine20/Voipmanager/Frontend/Asterisk/MeetMe.php
tine20/Voipmanager/Frontend/Asterisk/SipPeers.php
tine20/Voipmanager/Frontend/Http.php
tine20/Voipmanager/Frontend/Json.php
tine20/Voipmanager/Frontend/Snom.php
tine20/Voipmanager/Model/Snom/Line.php
tine20/Voipmanager/Model/Snom/LineFilter.php
tine20/Voipmanager/Model/Snom/Location.php
tine20/Voipmanager/Model/Snom/Phone.php
tine20/Voipmanager/Model/Snom/PhoneFilter.php
tine20/Voipmanager/Model/Snom/PhoneRight.php
tine20/Voipmanager/Model/Snom/PhoneSettings.php
tine20/Voipmanager/Model/Snom/Setting.php
tine20/Voipmanager/Model/Snom/Software.php
tine20/Voipmanager/Model/Snom/Template.php
tine20/Voipmanager/Server/Asterisk.php
tine20/Voipmanager/Server/Snom.php
tine20/Voipmanager/Setup/Update/Release0.php
tine20/Voipmanager/Setup/Update/Release2.php
tine20/Voipmanager/js/Asterisk/ContextEditDialog.js
tine20/Voipmanager/js/Asterisk/ContextGridPanel.js
tine20/Voipmanager/js/Asterisk/MeetmeEditDialog.js
tine20/Voipmanager/js/Asterisk/MeetmeGridPanel.js
tine20/Voipmanager/js/Asterisk/SipPeerGridPanel.js
tine20/Voipmanager/js/Asterisk/VoicemailEditDialog.js
tine20/Voipmanager/js/Asterisk/VoicemailGridPanel.js
tine20/Voipmanager/js/CallForwardPanel.js
tine20/Voipmanager/js/MainScreen.js
tine20/Voipmanager/js/Models.js
tine20/Voipmanager/js/Snom/LineGridPanel.js
tine20/Voipmanager/js/Snom/LocationEditDialog.js
tine20/Voipmanager/js/Snom/LocationGridPanel.js
tine20/Voipmanager/js/Snom/PhoneEditDialog.js
tine20/Voipmanager/js/Snom/PhoneGridPanel.js
tine20/Voipmanager/js/Snom/SettingEditDialog.js
tine20/Voipmanager/js/Snom/SettingGridPanel.js
tine20/Voipmanager/js/Snom/SoftwareEditDialog.js
tine20/Voipmanager/js/Snom/SoftwareGridPanel.js
tine20/Voipmanager/js/Snom/TemplateEditDialog.js
tine20/Voipmanager/js/Snom/TemplateGridPanel.js
tine20/Voipmanager/js/Voipmanager.js
tine20/Zend/Auth/Adapter/Http/Ntlm.php
tine20/Zend/Cache/Backend/Memcached.php
tine20/Zend/Cache/Backend/Redis.php
tine20/Zend/Db/Adapter/Oracle.php
tine20/Zend/Filter/Input.php
tine20/Zend/Json/Server.php
tine20/Zend/Log.php
tine20/Zend/Mail/Protocol/Sieve.php
tine20/Zend/Mime/Part.php
tine20/Zend/Scheduler.php
tine20/Zend/Scheduler/Backend/Abstract.php
tine20/Zend/Scheduler/Backend/Db.php
tine20/Zend/Scheduler/Backend/File.php
tine20/Zend/Scheduler/Task.php
tine20/Zend/Service/Nominatim/ResultSet.php
tine20/Zend/Service/Tine20.php

index 8014d92..e9178f8 100644 (file)
@@ -152,7 +152,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
         $idField = $schema->fields[0];
         $this->assertEquals('true', $idField->notnull, 'Test idField->notnull');
         $this->assertEquals('true', $idField->primary, 'Test idField->primary');
-        $this->assertEquals('true', $idField->autoincrement, 'Test idField->auto_increment');       
+        $this->assertEquals('true', $idField->autoincrement, 'Test idField->auto_increment');
     }
 
     
@@ -191,10 +191,10 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
              
         $oldColumnName = $testCol->name;
         $newColumnName = "new_column_name";
-        $testCol->name = $newColumnName; 
+        $testCol->name = $newColumnName;
         $this->_backend->alterCol($this->_table->name, $testCol, $oldColumnName);
         $existingSchema2 = $this->_backend->getExistingSchema($this->_table->name);
-        $this->assertEquals($existingSchema2->fields[1]->name, $newColumnName);     
+        $this->assertEquals($existingSchema2->fields[1]->name, $newColumnName);
     }
     
     public function testAlterCol()
@@ -203,7 +203,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
         $testCol = $existingSchema1->fields[1];
 
         $testCol->type = 'integer';
-        $testCol->length = 8;  
+        $testCol->length = 8;
         $this->_backend->alterCol($this->_table->name, $testCol, $testCol->name);
         $existingSchema2 = $this->_backend->getExistingSchema($this->_table->name);
         $this->assertEquals($existingSchema2->fields[1]->type, 'integer');
@@ -213,7 +213,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
     public function testDropCol()
     {
         $existingSchema1 = $this->_backend->getExistingSchema($this->_table->name);
-        $testCol = $existingSchema1->fields[1];     
+        $testCol = $existingSchema1->fields[1];
         
         $this->_backend->dropCol($this->_table->name, $testCol->name);
         $existingSchema2 = $this->_backend->getExistingSchema($this->_table->name);
@@ -224,11 +224,11 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
     {
         $existingSchema1 = $this->_backend->getExistingSchema($this->_table->name);
         $testCol = $existingSchema1->fields[1];
-        $testCol->name = 'new_column_name';     
+        $testCol->name = 'new_column_name';
         
         $this->_backend->addCol($this->_table->name, $testCol);
         $existingSchema2 = $this->_backend->getExistingSchema($this->_table->name);
-        $this->assertEquals(count($existingSchema1->fields), count($existingSchema2->fields)-1);    
+        $this->assertEquals(count($existingSchema1->fields), count($existingSchema2->fields)-1);
     }
     
     public function testAddColWithPositionParameter() 
@@ -236,12 +236,12 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
         $existingSchema = $this->_backend->getExistingSchema($this->_table->name);
         $testCol = $existingSchema->fields[1];
         
-        $testCol->name = 'new_column_name';     
+        $testCol->name = 'new_column_name';
         $this->_backend->addCol($this->_table->name, $testCol, 0);
         $existingSchema = $this->_backend->getExistingSchema($this->_table->name);
-        $this->assertEquals($testCol->name, $existingSchema->fields[0]->name);     
+        $this->assertEquals($testCol->name, $existingSchema->fields[0]->name);
         
-        $testCol->name = 'new_column_name2';     
+        $testCol->name = 'new_column_name2';
         $this->_backend->addCol($this->_table->name, $testCol, 1);
         $existingSchema = $this->_backend->getExistingSchema($this->_table->name);
         $this->assertEquals($testCol->name, $existingSchema->fields[2]->name);
@@ -385,7 +385,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
         $newColumn = $this->_getLastField();
         $this->assertEquals(array('enabled', 'disabled'), $newColumn->value);
         $this->assertEquals('test', $newColumn->name);
-        $this->assertEquals('true', $newColumn->notnull);       
+        $this->assertEquals('true', $newColumn->notnull);
         $this->assertEquals('enum', $newColumn->type);
         $this->assertNotEquals('true', $newColumn->primary);
         $this->assertNotEquals('true', $newColumn->unique);
@@ -412,7 +412,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
         $newColumn = $this->_getLastField();
         $this->assertEquals('order', $newColumn->name);
         $this->assertEquals('11', $newColumn->length);
-        $this->assertEquals('true', $newColumn->notnull);       
+        $this->assertEquals('true', $newColumn->notnull);
         $this->assertEquals('integer', $newColumn->type);
         $this->assertEquals('true', $newColumn->unsigned, 'Test unsigned');
         $this->assertNotEquals('true', $newColumn->primary);
@@ -520,8 +520,8 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
         $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);
         $this->_backend->addCol($this->_table->name, $field);
         $newColumn = $this->_getLastField();
-        $this->assertEquals('comment', $newColumn->comment);      
-        $this->assertTrue($newColumn->equals($field)); 
+        $this->assertEquals('comment', $newColumn->comment);
+        $this->assertTrue($newColumn->equals($field));
     }
     
     
@@ -547,7 +547,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
                     <type>integer</type>
                     <default>0</default>
                     <length>4</length>
-                </field>";  
+                </field>";
         
         $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);
         $this->_backend->addCol($this->_table->name, $field);
@@ -702,7 +702,7 @@ abstract class Setup_Backend_AbstractTest extends BaseTest
                         <table>$referencedTableName</table>
                         <field>id</field>
                     </reference>
-                </index>";  
+                </index>";
         
         $foreignKey = Setup_Backend_Schema_Index_Factory::factory('Xml', $string);
         
index eafe7e7..e128812 100644 (file)
@@ -28,7 +28,7 @@ class Setup_Backend_AllTests
     {
         $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Setup All Backend Tests');
         $suite->addTestSuite('Setup_Backend_MysqlTest');
-               $suite->addTestSuite('Setup_Backend_Schema_AllTests');
+        $suite->addTestSuite('Setup_Backend_Schema_AllTests');
         return $suite;
     }
 }
index dbf3e2c..6b075fc 100644 (file)
@@ -21,7 +21,7 @@ if (!defined('PHPUnit_MAIN_METHOD')) {
  * Test class for Tinebase_User
  */
 class Setup_Backend_MysqlTest extends Setup_Backend_AbstractTest
-{    
+{
 
     /**
      * Perform some insignificant string format manipulations (add/remove Whitespace).
@@ -60,7 +60,7 @@ class Setup_Backend_MysqlTest extends Setup_Backend_AbstractTest
                     <notnull>false</notnull>
                 </field>";
             
-        $statement = $this->_fixFieldDeclarationString("`account_id` int(11)  unsigned ");    
+        $statement = $this->_fixFieldDeclarationString("`account_id` int(11)  unsigned ");
         
         $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);
         $this->assertEquals($statement, $this->_backend->getFieldDeclarations($field));
@@ -91,7 +91,7 @@ class Setup_Backend_MysqlTest extends Setup_Backend_AbstractTest
                     </field>
                 </index>";
             
-        $statement = $this->_fixIndexDeclarationString(" KEY `id-account_type-account_id` (`container_id`,`account_type`,`account_id`) ");    
+        $statement = $this->_fixIndexDeclarationString(" KEY `id-account_type-account_id` (`container_id`,`account_type`,`account_id`) ");
         
         $index = Setup_Backend_Schema_Index_Factory::factory('Xml', $string);
         $this->assertEquals($statement, $this->_backend->getIndexDeclarations($index));
index af0ecef..21fe775 100644 (file)
@@ -27,7 +27,7 @@ class Setup_Backend_OracleTest extends Setup_Backend_AbstractTest
     {
         $prefix = 'phpunit';
         $dbProxy = $this->_getDbProxy($prefix);
-        $testString = 'This is NOT QUOTED but this is "QUOTED" and this is NOT QUOTED and "still NOT "QUOTED" but here yes it is QUOTED" but this is \"NOT QUOTED\" while this is \\\\"QUOTED\\\\".'; 
+        $testString = 'This is NOT QUOTED but this is "QUOTED" and this is NOT QUOTED and "still NOT "QUOTED" but here yes it is QUOTED" but this is \"NOT QUOTED\" while this is \\\\"QUOTED\\\\".';
         
         $this->assertFalse($dbProxy->proxy_isQuoted($testString, 12, '"'), 'Test position of "THIS1"');
         $this->assertTrue($dbProxy->proxy_isQuoted($testString, 32, '"'), 'Test position of "THIS2"');
@@ -93,7 +93,7 @@ class Setup_Backend_OracleTest extends Setup_Backend_AbstractTest
                     <notnull>true</notnull>
                 </field>";
         
-        $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);       
+        $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);
         $this->setExpectedException('Setup_Backend_Exception_NotImplemented');
         
         $this->_backend->addCol($this->_table->name, $field, 1); //Cannot use 3rd parameter $_position in Oracle 
@@ -124,14 +124,14 @@ class Setup_Backend_OracleTest extends Setup_Backend_AbstractTest
                     <length>11</length>
                     <unsigned>true</unsigned>
                     <notnull>true</notnull>
-                </field>";   
+                </field>";
         
-        $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);       
+        $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);
         $this->_backend->addCol($this->_table->name, $field);
         
         $newColumn = $this->_getLastField();
         $this->assertEquals('order', $newColumn->name);
-        $this->assertEquals('true', $newColumn->notnull);       
+        $this->assertEquals('true', $newColumn->notnull);
         $this->assertEquals('integer', $newColumn->type);
         $this->assertFalse(isset($newColumn->unsigned)); //unsigned option is currently not supported by oracle adapter
         $this->assertNotEquals('true', $newColumn->primary);
index 61498e5..4ffe30d 100644 (file)
@@ -28,8 +28,8 @@ class Setup_Backend_Schema_AllTests
     {
         $suite = new PHPUnit_Framework_TestSuite('Tine 2.0 Setup All Backend Tests');
         $suite->addTestSuite('Setup_Backend_Schema_TableTest');
-               $suite->addTestSuite('Setup_Backend_Schema_FieldTest');
-               $suite->addTestSuite('Setup_Backend_Schema_IndexTest');
+        $suite->addTestSuite('Setup_Backend_Schema_FieldTest');
+        $suite->addTestSuite('Setup_Backend_Schema_IndexTest');
         return $suite;
     }
 }
index 359590f..2beebce 100644 (file)
@@ -25,7 +25,7 @@ class Setup_Backend_Schema_FieldTest extends Setup_Backend_AbstractTest
                 <unsigned>true</unsigned>
             </field>";
 
-        $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);       
+        $field = Setup_Backend_Schema_Field_Factory::factory('Xml', $string);
         $this->assertTrue($field->isValid(), 'Test if a valid field is correctly marked as valid');
         $this->assertTrue($field->isValid(true), 'Test if no Exception is thrown on validating a valid field is correctly marked as valid');
         
index 504dad6..69c3e2e 100644 (file)
@@ -27,7 +27,7 @@ class Setup_Backend_Schema_TableTest extends Setup_Backend_AbstractTest
         $this->setExpectedException('Setup_Exception_InvalidSchema');
         $table->isValid(true); //Test if the parameter throwException works as expected
     }
-       
+    
     public function testSetName()
     {
         $name = 'phpunit-test';
@@ -37,18 +37,18 @@ class Setup_Backend_Schema_TableTest extends Setup_Backend_AbstractTest
         $this->_table->setName(SQL_TABLE_PREFIX . 'phpunit-test');
         $this->assertEquals('phpunit-test', $this->_table->name);
     }
-       
+    
     /**
      * @todo Implement testAddDeclarationField().
      */
     public function testAddDeclarationField() {
-       //$this->_table->addField()
+        //$this->_table->addField()
         // Remove the following lines when you implement this test.
         $this->markTestIncomplete(
           'This test has not been implemented yet.'
         );
     }
-       
+    
     /**
      * @todo Implement testSetDeclarationField().
      */
index 1cf1bf7..d1d354b 100644 (file)
@@ -34,14 +34,14 @@ class Setup_CoreTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Setup Controller Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Setup Controller Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     public function testGetConfigFilePath()
     {
         $configFilePath = Setup_Core::getConfigFilePath();
-       $this->assertTrue(file_exists($configFilePath));
+        $this->assertTrue(file_exists($configFilePath));
 //        rename($configFilePath, $configFilePath.'.phpunit');
 //        var_dump(Setup_Core::getConfigFilePath());
 //        $this->assertNull(Setup_Core::getConfigFilePath());
@@ -50,6 +50,6 @@ class Setup_CoreTest extends PHPUnit_Framework_TestCase
     
     public function testConfigFilesExists()
     {
-       $this->assertTrue(Setup_Core::configFileExists());
+        $this->assertTrue(Setup_Core::configFileExists());
     }
 }
index 25ab9b1..5a6426a 100644 (file)
@@ -31,8 +31,8 @@ define('PATH_TO_TEST_DIR', dirname(__FILE__));
 $path = array(
     PATH_TO_REAL_DIR,
     get_include_path(),
-       PATH_TO_TEST_DIR,
-       PATH_TO_TINE_LIBRARY
+    PATH_TO_TEST_DIR,
+    PATH_TO_TINE_LIBRARY
 );
         
 set_include_path(implode(PATH_SEPARATOR, $path));
@@ -58,7 +58,7 @@ if(file_exists(dirname(__FILE__) . '/phpunitconfig.inc.php')) {
     throw new Exception("Couldn't find phpunitconfig.inc.php! \n");
 }
 
-$_SERVER['DOCUMENT_ROOT'] = $config->docroot;    
+$_SERVER['DOCUMENT_ROOT'] = $config->docroot;
 
 TestServer::getInstance()->initFramework();
 
index c00a3b5..c1549db 100644 (file)
@@ -112,7 +112,7 @@ class ActiveSync_Backend_DeviceTests extends PHPUnit_Framework_TestCase
                     'policykey'  => 1,
                     'acsversion' => '12.0',
                     'remotewipe' => 0
-                )); 
+                ));
                 break;
             
             case Syncope_Model_Device::TYPE_WEBOS:
@@ -125,7 +125,7 @@ class ActiveSync_Backend_DeviceTests extends PHPUnit_Framework_TestCase
                     'policykey'  => 1,
                     'acsversion' => '12.0',
                     'remotewipe' => 0
-                )); 
+                ));
                 break;
                 
             case 'SamsungGalaxyS2':
@@ -152,10 +152,10 @@ class ActiveSync_Backend_DeviceTests extends PHPUnit_Framework_TestCase
                     'policykey'  => 1,
                     'acsversion' => '2.5',
                     'remotewipe' => 0
-                )); 
+                ));
                 break;
         }
 
-        return $device; 
+        return $device;
     }
 }
index a9261f3..179241a 100644 (file)
@@ -58,7 +58,7 @@ class ActiveSync_Backend_PolicyTests extends PHPUnit_Framework_TestCase
     }
     
     protected function setUp()
-    {          
+    {
     }
     
     /**
index 913a8d7..b3e8312 100644 (file)
@@ -58,7 +58,7 @@ class ActiveSync_Backend_SyncStateTests extends PHPUnit_Framework_TestCase
     }
     
     protected function setUp()
-    {          
+    {
         Tinebase_TransactionManager::getInstance()->startTransaction(Tinebase_Core::getDb());
         
         $this->_deviceBackend    = new ActiveSync_Backend_DeviceFacade();
index 01c3669..2ddc8ff 100644 (file)
@@ -81,7 +81,7 @@ class ActiveSync_Command_FolderSyncTests extends PHPUnit_Framework_TestCase
         Syncope_Registry::set('folderStateBackend',  $this->_folderBackend);
         Syncope_Registry::set('syncStateBackend',    $this->_syncStateBackend);
         Syncope_Registry::set('contentStateBackend', $this->_contentStateBackend);
-        Syncope_Registry::set('loggerBackend',       Tinebase_Core::getLogger());  
+        Syncope_Registry::set('loggerBackend',       Tinebase_Core::getLogger());
 
         Syncope_Registry::setContactsDataClass('ActiveSync_Controller_Contacts');
         Syncope_Registry::setCalendarDataClass('ActiveSync_Controller_Calendar');
index eba8eb4..66a6673 100644 (file)
@@ -81,7 +81,7 @@ class ActiveSync_Command_PingTests extends PHPUnit_Framework_TestCase
         Syncope_Registry::set('folderStateBackend',  $this->_folderBackend);
         Syncope_Registry::set('syncStateBackend',    $this->_syncStateBackend);
         Syncope_Registry::set('contentStateBackend', $this->_contentStateBackend);
-        Syncope_Registry::set('loggerBackend',       Tinebase_Core::getLogger());  
+        Syncope_Registry::set('loggerBackend',       Tinebase_Core::getLogger());
 
         Syncope_Registry::setContactsDataClass('ActiveSync_Controller_Contacts');
         Syncope_Registry::setCalendarDataClass('ActiveSync_Controller_Calendar');
@@ -104,7 +104,7 @@ class ActiveSync_Command_PingTests extends PHPUnit_Framework_TestCase
      * test sync of existing contacts folder
      */
     public function testPingForContacts()
-    {        
+    {
         $personalContainer = Tinebase_Container::getInstance()->getPersonalContainer(
             Tinebase_Core::getUser(),
             'Addressbook', 
@@ -205,7 +205,7 @@ class ActiveSync_Command_PingTests extends PHPUnit_Framework_TestCase
      * test sync of existing events folder
      */
     public function testPingForEvents()
-    {        
+    {
         $personalContainer = Tinebase_Container::getInstance()->getPersonalContainer(
             Tinebase_Core::getUser(),
             'Calendar', 
@@ -300,7 +300,7 @@ class ActiveSync_Command_PingTests extends PHPUnit_Framework_TestCase
      * test sync of existing imap folder
      */
     public function testPingForEmails()
-    {        
+    {
         $imapConfig = Tinebase_Config::getInstance()->get(Tinebase_Config::IMAP);
         if (! $imapConfig || ! isset($imapConfig->useSystemAccount) || $imapConfig->useSystemAccount != TRUE) {
             $this->markTestSkipped('IMAP backend not configured');
index c874075..71c055b 100644 (file)
@@ -81,7 +81,7 @@ class ActiveSync_Command_SyncTests extends PHPUnit_Framework_TestCase
         Syncope_Registry::set('folderStateBackend',  $this->_folderBackend);
         Syncope_Registry::set('syncStateBackend',    $this->_syncStateBackend);
         Syncope_Registry::set('contentStateBackend', $this->_contentStateBackend);
-        Syncope_Registry::set('loggerBackend',       Tinebase_Core::getLogger());  
+        Syncope_Registry::set('loggerBackend',       Tinebase_Core::getLogger());
 
         Syncope_Registry::setContactsDataClass('ActiveSync_Controller_Contacts');
         Syncope_Registry::setCalendarDataClass('ActiveSync_Controller_Calendar');
@@ -104,7 +104,7 @@ class ActiveSync_Command_SyncTests extends PHPUnit_Framework_TestCase
      * test sync of existing contacts folder
      */
     public function testSyncOfContacts()
-    {        
+    {
         $personalContainer = Tinebase_Container::getInstance()->getPersonalContainer(
             Tinebase_Core::getUser(),
             'Addressbook', 
@@ -260,7 +260,7 @@ class ActiveSync_Command_SyncTests extends PHPUnit_Framework_TestCase
      * test sync of existing events folder
      */
     public function testSyncOfEvents()
-    {        
+    {
         $personalContainer = Tinebase_Container::getInstance()->getPersonalContainer(
             Tinebase_Core::getUser(),
             'Calendar', 
index e507280..161f1fc 100644 (file)
@@ -67,8 +67,8 @@ Zeile 3</AirSyncBase:Data></AirSyncBase:Body><Calendar:Timezone>xP///wAAAAAAAAAA
      * @see ActiveSync/ActiveSync_TestCase::setUp()
      */
     protected function setUp()
-    {          
-        parent::setUp();       
+    {
+        parent::setUp();
         
         // replace email to make current user organizer and attendee
         $this->_testXMLInput = str_replace('lars@kneschke.de', Tinebase_Core::getUser()->accountEmailAddress, $this->_testXMLInput);
@@ -143,7 +143,7 @@ Zeile 3</AirSyncBase:Data></AirSyncBase:Body><Calendar:Timezone>xP///wAAAAAAAAAA
         Calendar_Controller_Event::getInstance()->createRecurException($recurSet[3]);
         
         // reread event from database again
-        $eventDaily = Calendar_Controller_Event::getInstance()->get($eventDaily);        
+        $eventDaily = Calendar_Controller_Event::getInstance()->get($eventDaily);
         #var_dump($eventDaily->toArray());
         
         $this->objects['eventDaily'] = $eventDaily;
@@ -244,7 +244,7 @@ Zeile 3</AirSyncBase:Data></AirSyncBase:Body><Calendar:Timezone>xP///wAAAAAAAAAA
         $dom     = $this->_getOutputDOMDocument();
         $appData = $dom->getElementsByTagNameNS('uri:AirSync', 'ApplicationData')->item(0);
 
-        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS)); 
+        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS));
         
         $controller->appendXML($appData, null, $allDayEvent->getId(), array());
         
@@ -278,7 +278,7 @@ Zeile 3</AirSyncBase:Data></AirSyncBase:Body><Calendar:Timezone>xP///wAAAAAAAAAA
         $appData        = $add->appendChild($testDom->createElementNS('uri:AirSync', 'ApplicationData'));
         
         
-        $controller = new ActiveSync_Controller_Calendar($this->objects['deviceIPhone'], new Tinebase_DateTime());     
+        $controller = new ActiveSync_Controller_Calendar($this->objects['deviceIPhone'], new Tinebase_DateTime());
         
         $controller->appendXML($appData, null, $this->objects['eventDaily']->getId(), array());
         
index d353fc7..0319110 100644 (file)
@@ -59,7 +59,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
     
     
     protected function setUp()
-    {       
+    {
         $this->_setGeoData = Addressbook_Controller_Contact::getInstance()->setGeoDataForContacts(FALSE);
         
         $appName = 'Addressbook';
@@ -112,7 +112,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
                 //Tinebase_Model_Grants::GRANT_EXPORT    => true,
                 //Tinebase_Model_Grants::GRANT_SYNC      => true,
                 Tinebase_Model_Grants::GRANT_ADMIN     => true,
-            );            
+            );
             $grants = new Tinebase_Record_RecordSet('Tinebase_Model_Grants', array($creatorGrants));
             
             $containerWithoutSyncGrant = new Tinebase_Model_Container(array(
@@ -148,7 +148,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
             'n_given'               => 'Lars',
             'n_family'              => 'Kneschke',
             'n_fileas'              => 'Kneschke, Lars',
-        )); 
+        ));
         
         $contact = Addressbook_Controller_Contact::getInstance()->create($contact, FALSE);
         $this->objects['contact'] = $contact;
@@ -175,7 +175,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
             'n_given'               => 'Lars',
             'n_family'              => 'Kneschke',
             'n_fileas'              => 'Kneschke, Lars',
-        )); 
+        ));
         
         $unSyncableContact = Addressbook_Controller_Contact::getInstance()->create($unSyncableContact, FALSE);
         $this->objects['unSyncableContact'] = $unSyncableContact;
@@ -291,7 +291,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
         $testDom->documentElement->setAttributeNS('http://www.w3.org/2000/xmlns/' ,'xmlns:Contacts', 'uri:Contacts');
         $testNode = $testDom->documentElement->appendChild($testDom->createElementNS('uri:AirSync', 'TestAppendXml'));
         
-        $controller = new ActiveSync_Controller_Contacts($this->objects['deviceWebOS'], new Tinebase_DateTime());       
+        $controller = new ActiveSync_Controller_Contacts($this->objects['deviceWebOS'], new Tinebase_DateTime());
         
         $controller->appendXML($testNode, null, $this->objects['contact']->getId(), array());
         
@@ -313,7 +313,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
         
         $userTimezone = Tinebase_Core::get(Tinebase_Core::USERTIMEZONE);
         $bday = new Tinebase_DateTime('1969-12-31', $userTimezone);
-        $bday->setTimezone('UTC');        
+        $bday->setTimezone('UTC');
         
         $this->assertTrue(!empty($result));
     }
@@ -340,7 +340,7 @@ class ActiveSync_Controller_ContactsTests extends PHPUnit_Framework_TestCase
         $appData        = $add->appendChild($testDom->createElementNS('uri:AirSync', 'ApplicationData'));
         
         
-        $controller = new ActiveSync_Controller_Contacts($this->objects['deviceIPhone'], new Tinebase_DateTime(null, null, 'de_DE'));     
+        $controller = new ActiveSync_Controller_Contacts($this->objects['deviceIPhone'], new Tinebase_DateTime(null, null, 'de_DE'));
         
         $controller->appendXML($appData, null, $this->objects['contact']->getId(), array());
         
index ff86fe6..ebdd50a 100644 (file)
@@ -48,7 +48,7 @@ class ActiveSync_Controller_DeviceTests extends PHPUnit_Framework_TestCase
     }
     
     protected function setUp()
-    {          
+    {
         ########### define test device
         $testDevice = ActiveSync_Backend_DeviceTests::getTestDevice();
         
@@ -108,7 +108,7 @@ class ActiveSync_Controller_DeviceTests extends PHPUnit_Framework_TestCase
      * test setting content filter
      */
     public function testSetDeviceContentFilter()
-    {        
+    {
         ActiveSync_Controller_Device::getInstance()->setDeviceContentFilter(
             $this->objects['device']->getId(), 
             ActiveSync_Controller::CLASS_CONTACTS, 
index 90e9795..239db41 100644 (file)
@@ -73,13 +73,13 @@ class ActiveSync_Controller_EmailTests extends PHPUnit_Framework_TestCase
      * set up test environment
      */
     protected function setUp()
-    {          
+    {
         $imapConfig = Tinebase_Config::getInstance()->getConfigAsArray(Tinebase_Config::IMAP);
         if (empty($imapConfig) || !array_key_exists('useSystemAccount', $imapConfig) || $imapConfig['useSystemAccount'] != true) {
             $this->markTestSkipped('IMAP backend not configured');
         }
-        $this->_testUser    = Tinebase_Core::getUser();        
-        $this->_domDocument = $this->_getOutputDOMDocument();        
+        $this->_testUser    = Tinebase_Core::getUser();
+        $this->_domDocument = $this->_getOutputDOMDocument();
         
         $this->_emailTestClass = new Felamimail_Controller_MessageTest();
         $this->_emailTestClass->setup();
@@ -109,18 +109,18 @@ class ActiveSync_Controller_EmailTests extends PHPUnit_Framework_TestCase
      */
     public function testAppendFileReference()
     {
-       $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS));
-       
-       $message = $this->_emailTestClass->messageTestHelper('multipart_mixed.eml', 'multipart/mixed');
-       
-       $fileReference = $message->getId() . '-2';
-       
-       $properties = $this->_domDocument->createElementNS('uri:ItemOperations', 'Properties');
+        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS));
+        
+        $message = $this->_emailTestClass->messageTestHelper('multipart_mixed.eml', 'multipart/mixed');
+        
+        $fileReference = $message->getId() . '-2';
+        
+        $properties = $this->_domDocument->createElementNS('uri:ItemOperations', 'Properties');
         $controller->appendFileReference($properties, $fileReference);
         $this->_domDocument->documentElement->appendChild($properties);
         
-       #$this->_domDocument->formatOutput = true;
-       #echo $this->_domDocument->saveXML();
+        #$this->_domDocument->formatOutput = true;
+        #echo $this->_domDocument->saveXML();
 
         $this->assertEquals('text/plain', @$this->_domDocument->getElementsByTagNameNS('uri:AirSyncBase', 'ContentType')->item(0)->nodeValue, $this->_domDocument->saveXML());
         $this->assertTrue(3000 < strlen($this->_domDocument->getElementsByTagNameNS('uri:ItemOperations', 'Data')->item(0)->nodeValue), $this->_domDocument->saveXML());
@@ -132,12 +132,12 @@ class ActiveSync_Controller_EmailTests extends PHPUnit_Framework_TestCase
     public function testInvalidBodyChars()
     {
         //invalid_body_chars.eml
-        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS)); 
-       
-       $message = $this->_emailTestClass->messageTestHelper('invalid_body_chars.eml', 'invalidBodyChars');
-       
-       $options = array();
-       $properties = $this->_domDocument->createElementNS('uri:ItemOperations', 'Properties');
+        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS));
+        
+        $message = $this->_emailTestClass->messageTestHelper('invalid_body_chars.eml', 'invalidBodyChars');
+        
+        $options = array();
+        $properties = $this->_domDocument->createElementNS('uri:ItemOperations', 'Properties');
         $controller->appendXML($properties, $message->folder_id, $message->getId(), $options);
         $this->_domDocument->documentElement->appendChild($properties);
         
@@ -151,7 +151,7 @@ class ActiveSync_Controller_EmailTests extends PHPUnit_Framework_TestCase
      */
     public function testAppendXML()
     {
-        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS)); 
+        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS));
         
         $message = $this->_emailTestClass->messageTestHelper('multipart_mixed.eml', 'multipart/mixed');
         
@@ -221,7 +221,7 @@ class ActiveSync_Controller_EmailTests extends PHPUnit_Framework_TestCase
      */
     protected function _getOutputDOMDocument()
     {
-       $dom = new DOMDocument();
+        $dom = new DOMDocument();
         $dom->formatOutput = false;
         $dom->encoding     = 'utf-8';
         $dom->loadXML($this->_testXMLOutput);
index 2ffc5fd..8b43e6f 100644 (file)
@@ -104,7 +104,7 @@ Zeile 3</AirSyncBase:Data></AirSyncBase:Body><Tasks:Subject>Testaufgabe auf mfe<
         $dom     = $this->_getOutputDOMDocument();
         $appData = $dom->getElementsByTagNameNS('uri:AirSync', 'ApplicationData')->item(0);
 
-        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS)); 
+        $controller = $this->_getController($this->_getDevice(Syncope_Model_Device::TYPE_WEBOS));
         
         $task = Tasks_TestCase::getTestRecord();
         $task->description = "Hello\r\nTask\nLars";
@@ -194,12 +194,12 @@ Zeile 3</AirSyncBase:Data></AirSyncBase:Body><Tasks:Subject>Testaufgabe auf mfe<
      */
     public function _testGetServerEntries()
     {
-       $controller = new ActiveSync_Controller_Contacts($this->objects['deviceIPhone'], new Tinebase_DateTime(null, null, 'de_DE'));
-       
-       $entries = $controller->getServerEntries('addressbook-root', null);
-       
-       $this->assertContains($this->objects['contact']->getId(), $entries);
-       $this->assertNotContains($this->objects['unSyncableContact']->getId(), $entries);
+        $controller = new ActiveSync_Controller_Contacts($this->objects['deviceIPhone'], new Tinebase_DateTime(null, null, 'de_DE'));
+        
+        $entries = $controller->getServerEntries('addressbook-root', null);
+        
+        $this->assertContains($this->objects['contact']->getId(), $entries);
+        $this->assertNotContains($this->objects['unSyncableContact']->getId(), $entries);
     }
     
     /**
index c8b7574..1758eec 100644 (file)
@@ -79,10 +79,10 @@ abstract class ActiveSync_TestCase extends PHPUnit_Framework_TestCase
      * @see PHPUnit_Framework_TestCase::setUp()
      */
     protected function setUp()
-    {       
+    {
         Tinebase_TransactionManager::getInstance()->startTransaction(Tinebase_Core::getDb());
         
-        $this->_testUser          = Tinebase_Core::getUser();        
+        $this->_testUser          = Tinebase_Core::getUser();
         $this->_specialFolderName = strtolower($this->_applicationName) . '-root';
         
         $this->objects['container'] = array();
@@ -201,7 +201,7 @@ abstract class ActiveSync_TestCase extends PHPUnit_Framework_TestCase
         $xml = simplexml_import_dom($this->_getInputDOMDocument());
         $record = $controller->createEntry($this->_getContainerWithSyncGrant()->getId(), $xml->Collections->Collection->Commands->Change[0]->ApplicationData);
         
-        $this->_validateGetServerEntries($record);        
+        $this->_validateGetServerEntries($record);
     }
     
     abstract protected function _validateGetServerEntries($_recordId);
@@ -275,7 +275,7 @@ abstract class ActiveSync_TestCase extends PHPUnit_Framework_TestCase
                 //Tinebase_Model_Grants::GRANT_SYNC      => true,
                 // NOTE: Admin Grant implies all other grants
                 //Tinebase_Model_Grants::GRANT_ADMIN     => true,
-            );            
+            );
             $grants = new Tinebase_Record_RecordSet('Tinebase_Model_Grants', array($creatorGrants));
             
             $containerWithoutSyncGrant = new Tinebase_Model_Container(array(
index eb78cf9..26da3ba 100755 (executable)
@@ -18,10 +18,10 @@ require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'TestHelper.php'
 
 class ActiveSync_TimezoneConverterTest extends PHPUnit_Framework_TestCase
 {
-       
-       protected $_uit = null;
-       
-       protected $_fixtures = array(
+    
+    protected $_uit = null;
+    
+    protected $_fixtures = array(
                /*'Europe/Berlin' => array(                                                                                                                            
                     'bias' => -60,
                     'standardName' => '',
@@ -139,7 +139,7 @@ class ActiveSync_TimezoneConverterTest extends PHPUnit_Framework_TestCase
     
     public function setUp()
     {
-       $this->_uit = ActiveSync_TimezoneConverter::getInstance(Tinebase_Core::getLogger());
+        $this->_uit = ActiveSync_TimezoneConverter::getInstance(Tinebase_Core::getLogger());
     }
         
     public function testGetPackedStringForTimezone()
@@ -150,10 +150,10 @@ class ActiveSync_TimezoneConverterTest extends PHPUnit_Framework_TestCase
     }
 
     public function testGetListOfTimezonesForOffsets()
-    {       
+    {
         foreach ($this->_fixtures as $timezoneIdentifier => $offsets) {
-               $timezoneAbbr = $this->_timezoneIdentifierToAbbreviation[$timezoneIdentifier];
-               $result = $this->_uit->getListOfTimezones($offsets);
+            $timezoneAbbr = $this->_timezoneIdentifierToAbbreviation[$timezoneIdentifier];
+            $result = $this->_uit->getListOfTimezones($offsets);
             $this->assertTrue(array_key_exists($timezoneIdentifier, $result));
             $this->assertEquals($timezoneAbbr,$result[$timezoneIdentifier]);
         }        
@@ -162,8 +162,8 @@ class ActiveSync_TimezoneConverterTest extends PHPUnit_Framework_TestCase
     public function testGetListOfTimezonesForPackedStrings()
     {
         foreach ($this->_packedFixtrues as $timezoneIdentifier => $packedTimezoneInfo) {
-               $timezoneAbbr = $this->_timezoneIdentifierToAbbreviation[$timezoneIdentifier];
-               $result = $this->_uit->getListOfTimezones($packedTimezoneInfo);
+            $timezoneAbbr = $this->_timezoneIdentifierToAbbreviation[$timezoneIdentifier];
+            $result = $this->_uit->getListOfTimezones($packedTimezoneInfo);
             $this->assertTrue(array_key_exists($timezoneIdentifier, $result));
             $this->assertEquals($timezoneAbbr, $result[$timezoneIdentifier]);
             
@@ -192,7 +192,7 @@ class ActiveSync_TimezoneConverterTest extends PHPUnit_Framework_TestCase
 
     public function testUnknownOffsets()
     {
-       $this->setExpectedException('ActiveSync_TimezoneNotFoundException');
+        $this->setExpectedException('ActiveSync_TimezoneNotFoundException');
         $offsets = array(                                                                                                                            
                     'bias' => -600000,
                     'standardName' => '',
index 7b77e34..e5ae978 100644 (file)
@@ -47,9 +47,9 @@ class Addressbook_Backend_SqlTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook SQL Backend Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook SQL Backend Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -113,7 +113,7 @@ class Addressbook_Backend_SqlTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
+        ));
         
         $this->objects['updatedContact'] = new Addressbook_Model_Contact(array(
             'adr_one_countryname'   => 'DE',
@@ -155,44 +155,44 @@ class Addressbook_Backend_SqlTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
+        ));
         
         return;
         
-               $this->expectFailure['TestRecord']['testSetId'][] = array('2','3');
-               $this->expectFailure['TestRecord']['testSetId'][] = array('30000000','3000000000000000000000000000');
-               $this->expectSuccess['TestRecord']['testSetId'][] = array('2','2');
-               
-               $this->expectFailure['TestRecordBypassFilters']['testSetIdBypassFilters'][] = array('2','3');
-               $this->expectFailure['TestRecordBypassFilters']['testSetIdBypassFilters'][] = array('30000000','3000000000000000000000000000');
-               $this->expectSuccess['TestRecordBypassFilters']['testSetIdBypassFilters'][] = array('2','2');
-               
-               $this->expectSuccess['TestRecord']['testSetFromArray'][] = array(array('test_1'=>'2', 'test_2'=>NULL), 'test_1');
-               $this->expectFailure['TestRecord']['testSetFromArrayException'][] = array('Tinebase_Exception_Record_Validation', array('test_2' => 'string'), );
-               $this->expectFailure['TestRecord']['testSetTimezoneException'][] = array('Exception', 'UTC', );
-               
-       $dummy = array(
-                                       'test_id'=>2, 
-                                       'test_2'=>'',
-                                       'date_single' => $date->get(Tinebase_Record_Abstract::ISO8601LONG), 
-                                       'date_multiple'=>'');
-               $this->expectSuccess['TestRecord']['testToArray'][] = array($dummy);
-               
-               
-               $this->expectSuccess['TestRecord']['__set'][] = array('test_3', 4 );
-               
-               $this->expectSuccess['TestRecord']['__get'][] = array('test_3', 4 );
-               
-               $this->expectSuccess['TestRecord']['test__isset'][] = array('test_id');
-               
-               $this->expectFailure['TestRecord']['test__isset'][] = array('string');
-               
-               
-               $this->expectFailure['TestRecord']['test__setException'][] = array( 'UnexpectedValueException', 'test_100',);
-               $this->expectFailure['TestRecord']['test__getException'][] = array( 'UnexpectedValueException', 'test_100',);
-               
-               
-               $this->expectFailure['TestRecord']['testOffsetUnset'][] = array( 'Tinebase_Exception_Record_NotAllowed', 'test_2',);
+        $this->expectFailure['TestRecord']['testSetId'][] = array('2','3');
+        $this->expectFailure['TestRecord']['testSetId'][] = array('30000000','3000000000000000000000000000');
+        $this->expectSuccess['TestRecord']['testSetId'][] = array('2','2');
+        
+        $this->expectFailure['TestRecordBypassFilters']['testSetIdBypassFilters'][] = array('2','3');
+        $this->expectFailure['TestRecordBypassFilters']['testSetIdBypassFilters'][] = array('30000000','3000000000000000000000000000');
+        $this->expectSuccess['TestRecordBypassFilters']['testSetIdBypassFilters'][] = array('2','2');
+        
+        $this->expectSuccess['TestRecord']['testSetFromArray'][] = array(array('test_1'=>'2', 'test_2'=>NULL), 'test_1');
+        $this->expectFailure['TestRecord']['testSetFromArrayException'][] = array('Tinebase_Exception_Record_Validation', array('test_2' => 'string'), );
+        $this->expectFailure['TestRecord']['testSetTimezoneException'][] = array('Exception', 'UTC', );
+        
+        $dummy = array(
+                    'test_id'=>2, 
+                    'test_2'=>'',
+                    'date_single' => $date->get(Tinebase_Record_Abstract::ISO8601LONG), 
+                    'date_multiple'=>'');
+            $this->expectSuccess['TestRecord']['testToArray'][] = array($dummy);
+            
+            
+            $this->expectSuccess['TestRecord']['__set'][] = array('test_3', 4 );
+            
+            $this->expectSuccess['TestRecord']['__get'][] = array('test_3', 4 );
+            
+            $this->expectSuccess['TestRecord']['test__isset'][] = array('test_id');
+            
+            $this->expectFailure['TestRecord']['test__isset'][] = array('string');
+            
+            
+            $this->expectFailure['TestRecord']['test__setException'][] = array( 'UnexpectedValueException', 'test_100',);
+        $this->expectFailure['TestRecord']['test__getException'][] = array( 'UnexpectedValueException', 'test_100',);
+        
+            
+            $this->expectFailure['TestRecord']['testOffsetUnset'][] = array( 'Tinebase_Exception_Record_NotAllowed', 'test_2',);
     }
 
     /**
@@ -203,7 +203,7 @@ class Addressbook_Backend_SqlTest extends PHPUnit_Framework_TestCase
      */
     protected function tearDown()
     {
-       
+    
     }
     
     /**
@@ -298,8 +298,8 @@ class Addressbook_Backend_SqlTest extends PHPUnit_Framework_TestCase
         
         $contact = $this->_backend->get($GLOBALS['Addressbook_ControllerTest']['contactId']);
     }
-}              
-       
+}        
+    
 
 if (PHPUnit_MAIN_METHOD == 'Addressbook_Backend_SqlTest::main') {
     Addressbook_Backend_SqlTest::main();
index 989458b..19655a5 100644 (file)
@@ -33,9 +33,9 @@ class Addressbook_CliTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook Cli Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook Cli Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
index 817212f..7f93327 100644 (file)
@@ -6,47 +6,47 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2010-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-/**\r
- * Test class for Tinebase_Group\r
- */\r
-class Addressbook_Controller_ListTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
-    protected $objects = array();\r
+
+/**
+ * Test class for Tinebase_Group
+ */
+class Addressbook_Controller_ListTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
+    protected $objects = array();
 
     /**
      * @var bool allow the use of GLOBALS to exchange data between tests
      */
     protected $backupGlobals = false;
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook List Controller Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
+    {
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook List Controller Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
     {
         $GLOBALS['Addressbook_Controller_ListTest'] = array_key_exists('Addressbook_Controller_ListTest', $GLOBALS) ? $GLOBALS['Addressbook_ListControllerTest'] : array();
         
@@ -141,28 +141,28 @@ class Addressbook_Controller_ListTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
+        ));
         $this->objects['contact2'] = Addressbook_Controller_Contact::getInstance()->create($this->objects['contact2'], FALSE);
         
         $this->objects['initialList'] = new Addressbook_Model_List(array(
-            'name'     => 'initial list',
+            'name'    => 'initial list',
             'container_id' => $container->getId(),
             'members' => array($this->objects['contact1'], $this->objects['contact2'])
-        )); 
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
-    {\r
+        ));
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
+    {
         Addressbook_Controller_Contact::getInstance()->delete(array(
             $this->objects['contact1']->getId(),
             $this->objects['contact2']->getId()
-        ));\r
+        ));
     }
     
     /**
index a483e2d..3c88eba 100644 (file)
@@ -41,9 +41,9 @@ class Addressbook_ControllerTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook Controller Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook Controller Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -103,7 +103,7 @@ class Addressbook_ControllerTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
+        ));
         
         $this->objects['updatedContact'] = new Addressbook_Model_Contact(array(
             'adr_one_countryname'   => 'DE',
@@ -146,8 +146,8 @@ class Addressbook_ControllerTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
-               
+        ));
+                
         $this->objects['note'] = new Tinebase_Model_Note(array(
             'note_type_id'      => 1,
             'note'              => 'phpunit test note',    
@@ -167,9 +167,9 @@ class Addressbook_ControllerTest extends PHPUnit_Framework_TestCase
      */
     protected function tearDown()
     {
-           if (array_key_exists('contact', $this->objects)) {
-               $this->_instance->delete($this->objects['contact']);
-           }
+        if (array_key_exists('contact', $this->objects)) {
+            $this->_instance->delete($this->objects['contact']);
+        }
     }
     
     /**
@@ -243,7 +243,7 @@ class Addressbook_ControllerTest extends PHPUnit_Framework_TestCase
             'Addressbook', 
             Zend_Registry::get('currentAccount'), 
             Tinebase_Model_Grants::GRANT_EDIT
-        );        
+        );
         $container = $personalContainer[0];
         
         $filter = new Addressbook_Model_ContactFilter(array(
index 4afbc36..9a324fb 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_FactoryTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Addressbook_Convert_Contact_VCard_Factory\r
- */\r
-class Addressbook_Convert_Contact_VCard_FactoryTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_FactoryTest::main');
+}
+
+/**
+ * Test class for Addressbook_Convert_Contact_VCard_Factory
+ */
+class Addressbook_Convert_Contact_VCard_FactoryTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Factory Contact Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Factory Contact Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
index 415f818..364fa50 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_GenericTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Addressbook_Convert_Contact_VCard_Generic\r
- */\r
-class Addressbook_Convert_Contact_VCard_GenericTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_GenericTest::main');
+}
+
+/**
+ * Test class for Addressbook_Convert_Contact_VCard_Generic
+ */
+class Addressbook_Convert_Contact_VCard_GenericTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Generic Contact Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Generic Contact Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
index 1876607..d237a1f 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_IOSTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Addressbook_Convert_Contact_VCard_IOS\r
- */\r
-class Addressbook_Convert_Contact_VCard_IOSTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_IOSTest::main');
+}
+
+/**
+ * Test class for Addressbook_Convert_Contact_VCard_IOS
+ */
+class Addressbook_Convert_Contact_VCard_IOSTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 addressbook CardDAV iOS contact tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-    }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 addressbook CardDAV iOS contact tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
index 7a5e664..5101539 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_MacOSXTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Addressbook_Convert_Contact_VCard_MacOSX\r
- */\r
-class Addressbook_Convert_Contact_VCard_MacOSXTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_MacOSXTest::main');
+}
+
+/**
+ * Test class for Addressbook_Convert_Contact_VCard_MacOSX
+ */
+class Addressbook_Convert_Contact_VCard_MacOSXTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV MacOSX Contact Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV MacOSX Contact Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
index d14d489..ef0f645 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_SogoTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Addressbook_Convert_Contact_VCard_Sogo\r
- */\r
-class Addressbook_Convert_Contact_VCard_SogoTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Convert_Contact_VCard_SogoTest::main');
+}
+
+/**
+ * Test class for Addressbook_Convert_Contact_VCard_Sogo
+ */
+class Addressbook_Convert_Contact_VCard_SogoTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Sogo Contact Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Sogo Contact Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
@@ -137,6 +137,6 @@ class Addressbook_Convert_Contact_VCard_SogoTest extends PHPUnit_Framework_TestC
         $this->assertContains('TITLE:Titel', $vcard, $vcard);
         $this->assertContains('URL;TYPE=WORK:http://www.tine20.com', $vcard, $vcard);
         $this->assertContains('URL;TYPE=HOME:http://www.tine20.org', $vcard, $vcard);
-        #$this->assertContains('BDAY:1975-01-16', $vcard, $vcard);        
+        #$this->assertContains('BDAY:1975-01-16', $vcard, $vcard);
     }
 }
index bf856d4..24b88a7 100644 (file)
@@ -6,46 +6,46 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Frontend_CardDAVTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Addressbook_Frontend_CardDAV\r
- */\r
-class Addressbook_Frontend_CardDAVTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Frontend_CardDAVTest::main');
+}
+
+/**
+ * Test class for Addressbook_Frontend_CardDAV
+ */
+class Addressbook_Frontend_CardDAVTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook CardDAV Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
+    {
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook CardDAV Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
     {
         $this->objects['initialContainer'] = Tinebase_Container::getInstance()->addContainer(new Tinebase_Model_Container(array(
             'name'              => Tinebase_Record_Abstract::generateUID(),
@@ -55,15 +55,15 @@ class Addressbook_Frontend_CardDAVTest extends PHPUnit_Framework_TestCase
         )));
         
         $this->objects['containerToDelete'][] = $this->objects['initialContainer'];
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
         foreach ($this->objects['containerToDelete'] as $containerId) {
             $containerId = $containerId instanceof Tinebase_Model_Container ? $containerId->getId() : $containerId;
index 3b79998..f6fb157 100644 (file)
@@ -6,46 +6,46 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Addressbook_Frontend_WebDAV_ContactTest::main');\r
-}\r
-\r
-/**\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Addressbook_Frontend_WebDAV_ContactTest::main');
+}
+
+/**
  * Test class for Addressbook_Frontend_WebDAV_Contact
- */\r
-class Addressbook_Frontend_WebDAV_ContactTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+ */
+class Addressbook_Frontend_WebDAV_ContactTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Contact Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
+    {
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Contact Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
     {
         $this->objects['initialContainer'] = Tinebase_Container::getInstance()->addContainer(new Tinebase_Model_Container(array(
             'name'              => Tinebase_Record_Abstract::generateUID(),
@@ -57,15 +57,15 @@ class Addressbook_Frontend_WebDAV_ContactTest extends PHPUnit_Framework_TestCase
         $this->objects['containerToDelete'][] = $this->objects['initialContainer'];
         
         $this->objects['contactsToDelete'] = array();
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
         foreach ($this->objects['contactsToDelete'] as $contact) {
             $contact->delete();
@@ -178,7 +178,7 @@ class Addressbook_Frontend_WebDAV_ContactTest extends PHPUnit_Framework_TestCase
     
         $this->setExpectedException('Sabre_DAV_Exception_Forbidden');
         
-        $contact->put($vcardStream);    
+        $contact->put($vcardStream);
     }
     
     /**
index a1acae0..265ab66 100644 (file)
@@ -31,9 +31,9 @@ class Addressbook_Frontend_WebDAV_ContainerTest extends PHPUnit_Framework_TestCa
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Container Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook WebDAV Container Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -96,7 +96,7 @@ class Addressbook_Frontend_WebDAV_ContainerTest extends PHPUnit_Framework_TestCa
         $this->testCreateFile();
         
         $requestedProperties = array(
-               '{http://calendarserver.org/ns/}getctag',
+            '{http://calendarserver.org/ns/}getctag',
             '{DAV:}resource-id'
         );
         
index 72be739..a710211 100644 (file)
@@ -31,7 +31,7 @@ class Addressbook_Import_CsvTest extends PHPUnit_Framework_TestCase
     /**
      * @var boolean
      */
-    protected $_deleteImportFile = TRUE; 
+    protected $_deleteImportFile = TRUE;
     
     protected $_deletePersonalContacts = FALSE;
     
index 4976231..29eab97 100644 (file)
@@ -36,9 +36,9 @@ class Addressbook_Import_VCardTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook VCard Import Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Addressbook VCard Import Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -79,4 +79,4 @@ class Addressbook_Import_VCardTest extends PHPUnit_Framework_TestCase
         $this->assertEquals('Eisenhüttenstraße 723', $result['results']->getFirstRecord()->adr_one_street, 'street not found');
         $this->assertEquals('http://www.vcard.de', $result['results']->getFirstRecord()->url, 'url not found');
     }
-}              
+}        
index 8f8e34f..10f7d17 100644 (file)
@@ -399,7 +399,7 @@ class Addressbook_JsonTest extends PHPUnit_Framework_TestCase
         $tag = array(
             'type'          => Tinebase_Model_Tag::TYPE_PERSONAL,
             'name'          => $tagName,
-            'description'      => 'testModlog',
+            'description'    => 'testModlog',
             'color'         => '#009B31',
         );
         $contact['tags'] = array($tag);
index 803a4cd..34b9185 100644 (file)
@@ -144,14 +144,14 @@ class Addressbook_ListControllerTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
+        ));
         $this->objects['contact2'] = Addressbook_Controller_Contact::getInstance()->create($this->objects['contact2'], FALSE);
         
         $this->objects['initialList'] = Addressbook_Controller_List::getInstance()->create(new Addressbook_Model_List(array(
             'name'         => 'initial list',
             'container_id' => $container->getId(),
             'members'      => array($this->objects['contact1'], $this->objects['contact2'])
-        ))); 
+        )));
     }
 
     /**
index 9baa2d6..0864d3c 100644 (file)
@@ -49,7 +49,7 @@ class Addressbook_PdfTest extends PHPUnit_Framework_TestCase
      * @access protected
      */
     protected function setUp()
-    {   
+    {
         $this->objects['contact'] = NULL;
     }
 
@@ -80,11 +80,11 @@ class Addressbook_PdfTest extends PHPUnit_Framework_TestCase
         
         //$pdf->save("test.pdf");
         
-        $this->assertEquals(1, preg_match("/^%PDF-1.4/", $pdfOutput), 'no pdf document'); 
-        $this->assertEquals(1, preg_match("/Pickhuben 4/", $pdfOutput), 'street not found'); 
+        $this->assertEquals(1, preg_match("/^%PDF-1.4/", $pdfOutput), 'no pdf document');
+        $this->assertEquals(1, preg_match("/Pickhuben 4/", $pdfOutput), 'street not found');
         
         // check name and company name
-        $this->assertEquals(1, preg_match("/Metaways Infosystems GmbH/", $pdfOutput), 'name not found');    
+        $this->assertEquals(1, preg_match("/Metaways Infosystems GmbH/", $pdfOutput), 'name not found');
 
         // check notes (removed that because system notes are no longer shown in pdf)
         /*
@@ -113,7 +113,7 @@ class Addressbook_PdfTest extends PHPUnit_Framework_TestCase
         $pdfOutput = $pdf->render();
         
         //$pdf->save("test.pdf");
-        $this->assertEquals(1, preg_match("/02.01.1975/", $pdfOutput), 'date format wrong or not found'); 
+        $this->assertEquals(1, preg_match("/02.01.1975/", $pdfOutput), 'date format wrong or not found');
         $this->assertEquals(1, preg_match("/Private Kontaktdaten/", $pdfOutput), 'translation not found');
     }
     
@@ -176,7 +176,7 @@ class Addressbook_PdfTest extends PHPUnit_Framework_TestCase
             'tel_home'              => '+49TELHOME',
             'tel_pager'             => '+49TELPAGER',
             'tel_work'              => '+49TELWORK',
-        )); 
+        ));
         
         $this->objects['contact'] = Addressbook_Controller_Contact::getInstance()->create($contact);
         
index aba8421..3a73ede 100644 (file)
@@ -33,9 +33,9 @@ class Admin_Acl_RightsTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Admin_Acl_RightsTest');
+        $suite  = new PHPUnit_Framework_TestSuite('Admin_Acl_RightsTest');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -45,7 +45,7 @@ class Admin_Acl_RightsTest extends PHPUnit_Framework_TestCase
      */
     protected function setUp()
     {
-        return;        
+        return;
     }
 
     /**
index 95fea2c..fee60fc 100644 (file)
@@ -42,9 +42,9 @@ class Admin_CliTest extends PHPUnit_Framework_TestCase
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Admin Cli Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Admin Cli Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -153,7 +153,7 @@ class Admin_CliTest extends PHPUnit_Framework_TestCase
                 'model'             => 'Tinebase_Model_FullUser',
                 'plugin'            => 'Admin_Import_Csv',
                 'plugin_options'    => $_config
-            ))); 
+            )));
         }
         
         $opts = new Zend_Console_Getopt('abp:');
index 04e4f19..eb841b0 100644 (file)
@@ -47,7 +47,7 @@ class Admin_ControllerTest extends PHPUnit_Framework_TestCase
             'id'            => 'test-controller-group',
             'name'          => 'tine20phpunit',
             'description'   => 'initial test group'
-        )); 
+        ));
         
         $this->objects['updatedGroup'] = new Tinebase_Model_Group(array(
             'id'            => 'test-controller-group',
@@ -64,7 +64,7 @@ class Admin_ControllerTest extends PHPUnit_Framework_TestCase
             'accountLastName'       => 'Tine 2.0',
             'accountFirstName'      => 'PHPUnit',
             'accountEmailAddress'   => 'phpunit@metaways.de'
-        )); 
+        ));
         
         $this->objects['updatedAccount'] = new Tinebase_Model_FullUser(array(
             'accountLoginName'      => 'tine20phpunit-updated',
@@ -74,7 +74,7 @@ class Admin_ControllerTest extends PHPUnit_Framework_TestCase
             'accountLastName'       => 'Tine 2.0 Updated',
             'accountFirstName'      => 'PHPUnit Updated',
             'accountEmailAddress'   => 'phpunit@tine20.org'
-        ));         
+        ));
         
             if (Tinebase_Application::getInstance()->isInstalled('Addressbook') === true) {
                 $internalAddressbook = Tinebase_Container::getInstance()->getContainerByName('Addressbook', 'Internal Contacts', Tinebase_Model_Container::TYPE_SHARED);
@@ -166,7 +166,7 @@ class Admin_ControllerTest extends PHPUnit_Framework_TestCase
      *
      */
     public function testGetGroups()
-    {        
+    {
         $groups = Admin_Controller_Group::getInstance()->search($this->objects['initialGroup']->name);
         
         $this->assertEquals(1, count($groups));
@@ -177,7 +177,7 @@ class Admin_ControllerTest extends PHPUnit_Framework_TestCase
      *
      */
     public function testGetGroup()
-    {                
+    {
         $groups = Admin_Controller_Group::getInstance()->search($this->objects['initialGroup']->name);
         
         $group = Admin_Controller_Group::getInstance()->get($groups[0]->getId());
index df616aa..a7bab3b 100644 (file)
@@ -62,7 +62,7 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
         $this->objects['updatedGroup'] = new Tinebase_Model_Group(array(
             'name'          => 'tine20phpunit',
             'description'   => 'updated group'
-        )); 
+        ));
         
         $this->objects['user'] = new Tinebase_Model_FullUser(array(
             'accountLoginName'      => 'tine20phpunit',
@@ -73,7 +73,7 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
             'accountLastName'       => 'Tine 2.0',
             'accountFirstName'      => 'PHPUnit',
             'accountEmailAddress'   => 'phpunit@metaways.de'
-        )); 
+        ));
         
         if (Tinebase_Application::getInstance()->isInstalled('Addressbook') === true) {
             $internalAddressbook = Tinebase_Container::getInstance()->getContainerByName('Addressbook', 'Internal Contacts', Tinebase_Model_Container::TYPE_SHARED);
@@ -211,7 +211,7 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
         
         $account = Tinebase_User::getInstance()->getFullUserById($this->objects['user']);
         
-        $this->assertEquals('disabled', $account->accountStatus);    
+        $this->assertEquals('disabled', $account->accountStatus);
     }
     
     /**
@@ -222,7 +222,7 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
         $this->_json->resetPassword($this->objects['user']->toArray(), 'password', FALSE);
         
         $authResult = Tinebase_Auth::getInstance()->authenticate($this->objects['user']->accountLoginName, 'password');
-        $this->assertTrue($authResult->isValid());    
+        $this->assertTrue($authResult->isValid());
     }
     
     /**
@@ -253,8 +253,8 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
         
         $result = $this->_json->saveGroup($data, $groupMembers);
 
-        $this->assertGreaterThan(0,sizeof($result['groupMembers'])); 
-        $this->assertEquals($this->objects['updatedGroup']->description, $result['description']); 
+        $this->assertGreaterThan(0,sizeof($result['groupMembers']));
+        $this->assertEquals($this->objects['updatedGroup']->description, $result['description']);
     }    
 
     /**
@@ -371,11 +371,11 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
      */
     public function testGetAccessLogsWithDeletedUser()
     {
-       $clienttype = 'Unittest';
-       $user = $this->objects['user'];
+        $clienttype = 'Unittest';
+        $user = $this->objects['user'];
         $this->_addAccessLog($user, $clienttype);
         
-       Admin_Controller_User::getInstance()->delete($user->getId());
+        Admin_Controller_User::getInstance()->delete($user->getId());
         $accessLogs = $this->_json->searchAccessLogs($this->_getAccessLogFilter($user->accountLoginName, $clienttype), array());
 
         $this->assertGreaterThan(0, sizeof($accessLogs['results']));
@@ -509,7 +509,7 @@ class Admin_JsonTest extends PHPUnit_Framework_TestCase
         
         $result = $this->_json->saveRole($roleArray, array(),array());
         
-        $this->assertEquals("updated description", $result['description']);        
+        $this->assertEquals("updated description", $result['description']);
     }
 
     /**
index 5339c00..1c23599 100644 (file)
@@ -259,7 +259,7 @@ class Calendar_Backend_SqlTest extends Calendar_TestCase
         
         $this->assertEquals(2, count($persistentEvent->exdate), 'We put in two exdates, we should get out two exdates!');
         foreach ($persistentEvent->exdate as $exdate) {
-               $this->assertTrue($exdate->equals($event->exdate[0]) || $exdate->equals($event->exdate[1]), 'exdates mismatch');
+            $this->assertTrue($exdate->equals($event->exdate[0]) || $exdate->equals($event->exdate[1]), 'exdates mismatch');
         }
     }
     
index 9820760..fea270e 100644 (file)
@@ -587,28 +587,28 @@ class Calendar_Controller_EventGrantsTests extends Calendar_TestCase
     {
         foreach ($this->_personasDefaultCals as $loginName => $calendar) {
             Tinebase_Container::getInstance()->setGrants($calendar, new Tinebase_Record_RecordSet('Tinebase_Model_Grants', array(array(
-                   'account_id'    => $this->_personas[$loginName]->getId(),
-                   'account_type'  => 'user',
-                   Tinebase_Model_Grants::GRANT_READ     => true,
-                   Tinebase_Model_Grants::GRANT_ADD      => true,
-                   Tinebase_Model_Grants::GRANT_EDIT     => true,
-                   Tinebase_Model_Grants::GRANT_DELETE   => true,
-                   Tinebase_Model_Grants::GRANT_PRIVATE  => true,
-                   Tinebase_Model_Grants::GRANT_ADMIN    => true,
-               ))), true);
-               
-               $events = $this->_backend->search(new Calendar_Model_EventFilter(array(
-                   array('field' => 'container_id', 'operator' => 'equals', 'value' => $calendar->getId()),
-               )), new Tinebase_Model_Pagination(array()));
-               
-               // delete alarms
-               Tinebase_Alarm::getInstance()->deleteAlarmsOfRecord('Calendar_Model_Event', $events->getArrayOfIds());
-               
-               // delete events
-               foreach ($events as $event) {
-                   $this->_backend->delete($event->getId());
-               }
-       }
+                'account_id'    => $this->_personas[$loginName]->getId(),
+                'account_type'  => 'user',
+                Tinebase_Model_Grants::GRANT_READ     => true,
+                Tinebase_Model_Grants::GRANT_ADD      => true,
+                Tinebase_Model_Grants::GRANT_EDIT     => true,
+                Tinebase_Model_Grants::GRANT_DELETE   => true,
+                Tinebase_Model_Grants::GRANT_PRIVATE  => true,
+                Tinebase_Model_Grants::GRANT_ADMIN    => true,
+            ))), true);
+            
+            $events = $this->_backend->search(new Calendar_Model_EventFilter(array(
+                array('field' => 'container_id', 'operator' => 'equals', 'value' => $calendar->getId()),
+            )), new Tinebase_Model_Pagination(array()));
+            
+            // delete alarms
+            Tinebase_Alarm::getInstance()->deleteAlarmsOfRecord('Calendar_Model_Event', $events->getArrayOfIds());
+            
+            // delete events
+            foreach ($events as $event) {
+                $this->_backend->delete($event->getId());
+            }
+        }
     }
 }
     
index 1dc0c1b..44ec104 100644 (file)
@@ -32,7 +32,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
     
     public function setUp()
     {
-       parent::setUp();
+        parent::setUp();
         $this->_controller = Calendar_Controller_Event::getInstance();
 
     }
@@ -264,7 +264,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
     public function testSearchFreeTime() {
         $persistentEvent = $this->testGetFreeBusyInfo();
         
-        $this->_controller->searchFreeTime($persistentEvent->dtstart->setHour(6), $persistentEvent->dtend->setHour(22), $persistentEvent->attendee); 
+        $this->_controller->searchFreeTime($persistentEvent->dtstart->setHour(6), $persistentEvent->dtend->setHour(22), $persistentEvent->attendee);
     }
     
     /**
@@ -274,7 +274,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
         $testCal = Tinebase_Container::getInstance()->addContainer(new Tinebase_Model_Container(array(
             'name'           => 'PHPUnit test calendar',
             'type'           => Tinebase_Model_Container::TYPE_PERSONAL,
-               'owner_id'       => Tinebase_Core::getUser(),
+            'owner_id'       => Tinebase_Core::getUser(),
             'backend'        => $this->_backend->getType(),
             'application_id' => Tinebase_Application::getInstance()->getApplicationByName('Calendar')->getId()
         ), true));
@@ -320,7 +320,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
         
         try {
             $exectionRaised = FALSE;
-               $this->_controller->create($conflictEvent, TRUE);
+            $this->_controller->create($conflictEvent, TRUE);
         } catch (Calendar_Exception_AttendeeBusy $busyException) {
             $fbData = $busyException->toArray();
             $this->assertGreaterThanOrEqual(2, count($fbData['freebusyinfo']));
@@ -408,7 +408,7 @@ class Calendar_Controller_EventTests extends Calendar_TestCase
             'user_id'   => $defaultUserGroup->getId(),
             'user_type' => Calendar_Model_Attender::USERTYPE_GROUP,
             'role'      => Calendar_Model_Attender::ROLE_REQUIRED
-        )));        
+        )));
         
         $this->setExpectedException('Calendar_Exception_AttendeeBusy');
         $this->_controller->update($persitentConflictEvent, TRUE);
index 60adcef..edef294 100644 (file)
@@ -31,7 +31,7 @@ class Calendar_Controller_RecurTest extends Calendar_TestCase
     
     public function setUp()
     {
-       parent::setUp();
+        parent::setUp();
         $this->_controller = Calendar_Controller_Event::getInstance();
     }
     
index 375a5e5..76285d2 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Calendar_Convert_Event_VCalendar_FactoryTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Calendar_Convert_Event_VCalendar_Factory\r
- */\r
-class Calendar_Convert_Event_VCalendar_FactoryTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Calendar_Convert_Event_VCalendar_FactoryTest::main');
+}
+
+/**
+ * Test class for Calendar_Convert_Event_VCalendar_Factory
+ */
+class Calendar_Convert_Event_VCalendar_FactoryTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Factory Event Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Factory Event Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
index 95ea35e..4d2f70a 100644 (file)
@@ -31,9 +31,9 @@ class Calendar_Convert_Event_VCalendar_GenericTest extends PHPUnit_Framework_Tes
      */
     public static function main()
     {
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Generic Event Tests');
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Generic Event Tests');
         PHPUnit_TextUI_TestRunner::run($suite);
-       }
+    }
 
     /**
      * Sets up the fixture.
@@ -389,9 +389,9 @@ class Calendar_Convert_Event_VCalendar_GenericTest extends PHPUnit_Framework_Tes
         $event->last_modified_time = new Tinebase_DateTime('2011-11-11 12:12', 'UTC');
         $event->attendee->addRecord(new Calendar_Model_Attender(array(
             'user_id'   => Tinebase_Core::getUser()->contact_id,
-               'user_type' => Calendar_Model_Attender::USERTYPE_USER,
-               'role'      => Calendar_Model_Attender::ROLE_REQUIRED,
-               'status'    => Calendar_Model_Attender::STATUS_ACCEPTED
+            'user_type' => Calendar_Model_Attender::USERTYPE_USER,
+            'role'      => Calendar_Model_Attender::ROLE_REQUIRED,
+            'status'    => Calendar_Model_Attender::STATUS_ACCEPTED
         )));
         
         $converter = Calendar_Convert_Event_VCalendar_Factory::factory(Calendar_Convert_Event_VCalendar_Factory::CLIENT_GENERIC);
@@ -429,9 +429,9 @@ class Calendar_Convert_Event_VCalendar_GenericTest extends PHPUnit_Framework_Tes
         $event->last_modified_time = new Tinebase_DateTime('2011-11-11 12:12', 'UTC');
         $event->attendee->addRecord(new Calendar_Model_Attender(array(
             'user_id'   => Tinebase_Core::getUser()->contact_id,
-               'user_type' => Calendar_Model_Attender::USERTYPE_USER,
-               'role'      => Calendar_Model_Attender::ROLE_REQUIRED,
-               'status'    => Calendar_Model_Attender::STATUS_ACCEPTED
+            'user_type' => Calendar_Model_Attender::USERTYPE_USER,
+            'role'      => Calendar_Model_Attender::ROLE_REQUIRED,
+            'status'    => Calendar_Model_Attender::STATUS_ACCEPTED
         )));
         
         $converter = Calendar_Convert_Event_VCalendar_Factory::factory(Calendar_Convert_Event_VCalendar_Factory::CLIENT_GENERIC);
@@ -499,7 +499,7 @@ class Calendar_Convert_Event_VCalendar_GenericTest extends PHPUnit_Framework_Tes
         
         $event->alarms = new Tinebase_Record_RecordSet('Tinebase_Model_Alarm', array(array(
             'model'            => 'Calendar_Model_Event',
-            'alarm_time'          => '2011-10-04 07:10:00',
+            'alarm_time'       => '2011-10-04 07:10:00',
             'minutes_before'   => Tinebase_Model_Alarm::OPTION_CUSTOM
         )));
         
index 6c7eab7..931a8a9 100644 (file)
@@ -6,56 +6,56 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Calendar_Convert_Event_VCalendar_MacOSXTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Calendar_Convert_Event_VCalendar_MacOSX\r
- */\r
-class Calendar_Convert_Event_VCalendar_MacOSXTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Calendar_Convert_Event_VCalendar_MacOSXTest::main');
+}
+
+/**
+ * Test class for Calendar_Convert_Event_VCalendar_MacOSX
+ */
+class Calendar_Convert_Event_VCalendar_MacOSXTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV MacOSX Event Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV MacOSX Event Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
@@ -68,6 +68,6 @@ class Calendar_Convert_Event_VCalendar_MacOSXTest extends PHPUnit_Framework_Test
         
         $converter = Calendar_Convert_Event_VCalendar_Factory::factory(Calendar_Convert_Event_VCalendar_Factory::CLIENT_GENERIC);
         
-        $event = $converter->toTine20Model($vcalendarStream);        
+        $event = $converter->toTine20Model($vcalendarStream);
     }            
 }
index bdf8462..00ede8c 100644 (file)
@@ -6,52 +6,52 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(dirname(__FILE__))))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-/**\r
- * Test class for Calendar_Convert_Event_VCalendar_Thunderbird\r
- */\r
-class Calendar_Convert_Event_VCalendar_ThunderbirdTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+/**
+ * Test class for Calendar_Convert_Event_VCalendar_Thunderbird
+ */
+class Calendar_Convert_Event_VCalendar_ThunderbirdTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Thunderbird Event Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
     {
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Thunderbird Event Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
+    {
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
     }
     
index 52ed2b1..6cab679 100644 (file)
-<?php\r
-/**\r
- * Tine 2.0 - http://www.tine20.org\r
- * \r
- * @package     Calendar\r
- * @license     http://www.gnu.org/licenses/agpl.html\r
- * @copyright   Copyright (c) 2010 Metaways Infosystems GmbH (http://www.metaways.de)\r
- * @author      Cornelius Weiss <c.weiss@metaways.de>\r
- * \r
- */\r
-\r
-/**\r
- * Test helper\r
- */\r
-require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';\r
-\r
-/**\r
- * Test class for Calendar_ICalTests\r
- */\r
-class Calendar_Export_ICalTest extends PHPUnit_Framework_TestCase //extends Calendar_TestCase\r
-{\r
-    public function setUp()\r
-    {\r
-        $this->_testEvent = new Calendar_Model_Event(array(\r
-            'dtstart'       => '2010-12-30 12:00:00',\r
-            'dtend'         => '2010-12-30 13:00:00',\r
-            'originator_tz' => 'Europe/Berlin',\r
-            'summary'       => 'take a nap',\r
-            'description'   => 'hard working man needs some silence',\r
-            'uid'           => Tinebase_Record_Abstract::generateUID(),\r
-            'seq'           => 3,\r
-            'transp'        => Calendar_Model_Event::TRANSP_OPAQUE,\r
-            'class'         => Calendar_Model_Event::CLASS_PUBLIC,\r
-            'location'      => 'couch',\r
-            'priority'      => 1,\r
-            'rrule'         => 'FREQ=DAILY;INTERVAL=1;UNTIL=2015-12-30 13:00:00'\r
-        ));\r
-    }\r
-    \r
-    public function testExport()\r
-    {\r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($this->_testEvent);\r
-//        echo $ics;\r
-\r
-        // assert basics\r
-        $this->assertEquals(1, preg_match("/SUMMARY:{$this->_testEvent->summary}\r\n/", $ics), 'SUMMARY not correct');\r
-        \r
-        // assert dtstart/dtend tz\r
-        $this->assertEquals(1, preg_match("/DTSTART;TZID=Europe\/Berlin:20101230T130000\r\n/", $ics), 'DTSTART not correct');\r
-        $this->assertEquals(1, preg_match("/DTEND;TZID=Europe\/Berlin:20101230T140000\r\n/", $ics), 'DTEND not correct');\r
-        \r
-        // assert vtimezone\r
-        $this->assertEquals(1, preg_match("/BEGIN:VTIMEZONE\r\n/", $ics), 'VTIMEZONE missing');\r
-        $this->assertEquals(1, preg_match("/BEGIN:DAYLIGHT\r\nTZOFFSETFROM:\+0100\r\nTZOFFSETTO:\+0200\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r\nEND:DAYLIGHT\r\n/", $ics), 'DAYLIGHT not correct');\r
-\r
-        // assert rrule\r
-        $this->assertEquals(1, preg_match("/RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20151230T130000Z\r\n/", $ics), 'RRULE broken');\r
-    }\r
-    \r
-    public function testExportAllDayEvent()\r
-    {\r
-        $this->_testEvent->is_all_day_event = TRUE;\r
-        $this->_testEvent->dtend = $this->_testEvent->dtend->addDay(1);\r
-        \r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($this->_testEvent);\r
-//        echo $ics;\r
-        \r
-        // assert dtstart/dtend tz\r
-        $this->assertEquals(1, preg_match("/DTSTART;VALUE=DATE:20101230\r\n/", $ics), 'DTSTART not correct');\r
-        $this->assertEquals(1, preg_match("/DTEND;VALUE=DATE:20101231\r\n/", $ics), 'DTEND not correct');\r
-        \r
-    }\r
-    \r
-    public function testExportRecurId()\r
-    {\r
-        $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');\r
-        $nextOccurance = Calendar_Model_Rrule::computeNextOccurrence($this->_testEvent, $exceptions, $this->_testEvent->dtstart);\r
-        \r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($nextOccurance);\r
-//        echo $ics;\r
-\r
-        // assert recurid\r
-        $this->assertEquals(1, preg_match("/RECURRENCE-ID;TZID=Europe\/Berlin:20101231T130000\r\n/", $ics), 'RECURRENCE-ID broken');\r
-    }\r
-    \r
-    public function testExportExdate()\r
-    {\r
-        $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');\r
-        $from = clone $this->_testEvent->dtstart;\r
-        $until = clone $this->_testEvent->dtend;\r
-        $until->addDay(2);\r
-        \r
-        $recurSet = Calendar_Model_Rrule::computeRecurrenceSet($this->_testEvent, $exceptions, $from, $until);\r
-        $this->_testEvent->exdate = $recurSet->dtstart;\r
-\r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($this->_testEvent);\r
-//        echo $ics;\r
-\r
-        // assert exdate\r
-//        $this->assertEquals(1, preg_match("/EXDATE;TZID=Europe\/Berlin:20101231T130000,20110101T130000\r\n/", $ics), 'RECURRENCE-ID broken');\r
-        $this->assertEquals(1, preg_match("/EXDATE;TZID=Europe\/Berlin:20101231T130000\r\n/", $ics), 'RECURRENCE-ID broken');\r
-        $this->assertEquals(1, preg_match("/EXDATE;TZID=Europe\/Berlin:20110101T130000\r\n/", $ics), 'RECURRENCE-ID broken');\r
-    }\r
-    \r
-    public function testExportRecurSet()\r
-    {\r
-        $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');\r
-        $from = clone $this->_testEvent->dtstart;\r
-        $until = clone $this->_testEvent->dtend;\r
-        $until->addDay(2);\r
-        \r
-        $recurSet = Calendar_Model_Rrule::computeRecurrenceSet($this->_testEvent, $exceptions, $from, $until);\r
-        $this->_testEvent->exdate = array($recurSet->dtstart[0]);\r
-        \r
-        $eventSet = new Tinebase_Record_RecordSet('Calendar_Model_Event', array(\r
-            $this->_testEvent,\r
-            $recurSet[1]\r
-        ));\r
-\r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($eventSet);\r
-//        echo $ics;\r
-\r
-        $this->assertEquals(2, preg_match_all('/BEGIN:VEVENT\r\n/', $ics, $matches), 'There should be exactly 2 VEVENT compontents');\r
-    }\r
-    \r
-    public function testExportOrganizer()\r
-    {\r
-        $this->_testEvent->organizer = array_value('pwulf', Zend_Registry::get('personas'))->contact_id;\r
-        \r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($this->_testEvent);\r
-//        echo $ics;\r
-\r
-        // assert organizer\r
-        $this->assertEquals(1, preg_match("/ORGANIZER;CN=\"Wulf, Paul\":mailto:pwulf@tine20.org\r\n/", $ics), 'ORGANIZER missing/broken');\r
-    }\r
-    \r
-    public function testExportAttendee()\r
-    {\r
-        $this->_testEvent->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(\r
-            array(\r
-                'role'          => Calendar_Model_Attender::ROLE_REQUIRED,\r
-                'status'        => Calendar_Model_Attender::STATUS_ACCEPTED,\r
-                'user_type'     => Calendar_Model_Attender::USERTYPE_USER,\r
-                'user_id'       => array_value('pwulf', Zend_Registry::get('personas'))->contact_id,\r
-            )\r
-        ));\r
-        \r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($this->_testEvent);\r
-//        echo $ics;\r
-\r
-        // assert organizer\r
-        $this->assertEquals(1, preg_match("/ATTENDEE;CN=\"Wulf, Paul\";CUTYPE=INDIVIDUAL;EMAIL=pwulf@tine20.org;PARTSTAT=\r\n ACCEPTED;ROLE=REQ-PARTICIPANT;RSVP=FALSE:mailto:pwulf@tine20.org\r\n/", $ics), 'ATTENDEE missing/broken');\r
-    }\r
-    \r
-    public function testExportAlarm()\r
-    {\r
-        // alarm handling is ugly...\r
-        $alarmTime = clone $this->_testEvent->dtstart;\r
-        $alarmTime->sub(15, Tinebase_DateTime::MODIFIER_MINUTE);\r
-            \r
-            \r
-        $this->_testEvent->alarms = new Tinebase_Record_RecordSet('Tinebase_Model_Alarm', array(\r
-            new Tinebase_Model_Alarm(array(\r
-                'minutes_before' => 15,\r
-                'alarm_time'     => $alarmTime\r
-            ), TRUE)\r
-        ));\r
-        \r
-        $exporter = new Calendar_Export_Ical();\r
-        $ics = $exporter->eventToIcal($this->_testEvent);\r
-//        echo $ics;\r
-\r
-        // assert organizer\r
-        $this->assertEquals(1, preg_match("/TRIGGER:-PT15M\r\n/", $ics), 'TRIGGER missing/broken');\r
-    }\r
+<?php
+/**
+ * Tine 2.0 - http://www.tine20.org
+ * 
+ * @package     Calendar
+ * @license     http://www.gnu.org/licenses/agpl.html
+ * @copyright   Copyright (c) 2010 Metaways Infosystems GmbH (http://www.metaways.de)
+ * @author      Cornelius Weiss <c.weiss@metaways.de>
+ * 
+ */
+
+/**
+ * Test helper
+ */
+require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
+
+/**
+ * Test class for Calendar_ICalTests
+ */
+class Calendar_Export_ICalTest extends PHPUnit_Framework_TestCase //extends Calendar_TestCase
+{
+    public function setUp()
+    {
+        $this->_testEvent = new Calendar_Model_Event(array(
+            'dtstart'       => '2010-12-30 12:00:00',
+            'dtend'         => '2010-12-30 13:00:00',
+            'originator_tz' => 'Europe/Berlin',
+            'summary'       => 'take a nap',
+            'description'   => 'hard working man needs some silence',
+            'uid'           => Tinebase_Record_Abstract::generateUID(),
+            'seq'           => 3,
+            'transp'        => Calendar_Model_Event::TRANSP_OPAQUE,
+            'class'         => Calendar_Model_Event::CLASS_PUBLIC,
+            'location'      => 'couch',
+            'priority'      => 1,
+            'rrule'         => 'FREQ=DAILY;INTERVAL=1;UNTIL=2015-12-30 13:00:00'
+        ));
+    }
+    
+    public function testExport()
+    {
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($this->_testEvent);
+//        echo $ics;
+
+        // assert basics
+        $this->assertEquals(1, preg_match("/SUMMARY:{$this->_testEvent->summary}\r\n/", $ics), 'SUMMARY not correct');
+        
+        // assert dtstart/dtend tz
+        $this->assertEquals(1, preg_match("/DTSTART;TZID=Europe\/Berlin:20101230T130000\r\n/", $ics), 'DTSTART not correct');
+        $this->assertEquals(1, preg_match("/DTEND;TZID=Europe\/Berlin:20101230T140000\r\n/", $ics), 'DTEND not correct');
+        
+        // assert vtimezone
+        $this->assertEquals(1, preg_match("/BEGIN:VTIMEZONE\r\n/", $ics), 'VTIMEZONE missing');
+        $this->assertEquals(1, preg_match("/BEGIN:DAYLIGHT\r\nTZOFFSETFROM:\+0100\r\nTZOFFSETTO:\+0200\r\nRRULE:FREQ=YEARLY;BYMONTH=3;BYDAY=-1SU\r\nEND:DAYLIGHT\r\n/", $ics), 'DAYLIGHT not correct');
+
+        // assert rrule
+        $this->assertEquals(1, preg_match("/RRULE:FREQ=DAILY;INTERVAL=1;UNTIL=20151230T130000Z\r\n/", $ics), 'RRULE broken');
+    }
+    
+    public function testExportAllDayEvent()
+    {
+        $this->_testEvent->is_all_day_event = TRUE;
+        $this->_testEvent->dtend = $this->_testEvent->dtend->addDay(1);
+        
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($this->_testEvent);
+//        echo $ics;
+        
+        // assert dtstart/dtend tz
+        $this->assertEquals(1, preg_match("/DTSTART;VALUE=DATE:20101230\r\n/", $ics), 'DTSTART not correct');
+        $this->assertEquals(1, preg_match("/DTEND;VALUE=DATE:20101231\r\n/", $ics), 'DTEND not correct');
+        
+    }
+    
+    public function testExportRecurId()
+    {
+        $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');
+        $nextOccurance = Calendar_Model_Rrule::computeNextOccurrence($this->_testEvent, $exceptions, $this->_testEvent->dtstart);
+        
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($nextOccurance);
+//        echo $ics;
+
+        // assert recurid
+        $this->assertEquals(1, preg_match("/RECURRENCE-ID;TZID=Europe\/Berlin:20101231T130000\r\n/", $ics), 'RECURRENCE-ID broken');
+    }
+    
+    public function testExportExdate()
+    {
+        $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');
+        $from = clone $this->_testEvent->dtstart;
+        $until = clone $this->_testEvent->dtend;
+        $until->addDay(2);
+        
+        $recurSet = Calendar_Model_Rrule::computeRecurrenceSet($this->_testEvent, $exceptions, $from, $until);
+        $this->_testEvent->exdate = $recurSet->dtstart;
+
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($this->_testEvent);
+//        echo $ics;
+
+        // assert exdate
+//        $this->assertEquals(1, preg_match("/EXDATE;TZID=Europe\/Berlin:20101231T130000,20110101T130000\r\n/", $ics), 'RECURRENCE-ID broken');
+        $this->assertEquals(1, preg_match("/EXDATE;TZID=Europe\/Berlin:20101231T130000\r\n/", $ics), 'RECURRENCE-ID broken');
+        $this->assertEquals(1, preg_match("/EXDATE;TZID=Europe\/Berlin:20110101T130000\r\n/", $ics), 'RECURRENCE-ID broken');
+    }
+    
+    public function testExportRecurSet()
+    {
+        $exceptions = new Tinebase_Record_RecordSet('Calendar_Model_Event');
+        $from = clone $this->_testEvent->dtstart;
+        $until = clone $this->_testEvent->dtend;
+        $until->addDay(2);
+        
+        $recurSet = Calendar_Model_Rrule::computeRecurrenceSet($this->_testEvent, $exceptions, $from, $until);
+        $this->_testEvent->exdate = array($recurSet->dtstart[0]);
+        
+        $eventSet = new Tinebase_Record_RecordSet('Calendar_Model_Event', array(
+            $this->_testEvent,
+            $recurSet[1]
+        ));
+
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($eventSet);
+//        echo $ics;
+
+        $this->assertEquals(2, preg_match_all('/BEGIN:VEVENT\r\n/', $ics, $matches), 'There should be exactly 2 VEVENT compontents');
+    }
+    
+    public function testExportOrganizer()
+    {
+        $this->_testEvent->organizer = array_value('pwulf', Zend_Registry::get('personas'))->contact_id;
+        
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($this->_testEvent);
+//        echo $ics;
+
+        // assert organizer
+        $this->assertEquals(1, preg_match("/ORGANIZER;CN=\"Wulf, Paul\":mailto:pwulf@tine20.org\r\n/", $ics), 'ORGANIZER missing/broken');
+    }
+    
+    public function testExportAttendee()
+    {
+        $this->_testEvent->attendee = new Tinebase_Record_RecordSet('Calendar_Model_Attender', array(
+            array(
+                'role'          => Calendar_Model_Attender::ROLE_REQUIRED,
+                'status'        => Calendar_Model_Attender::STATUS_ACCEPTED,
+                'user_type'     => Calendar_Model_Attender::USERTYPE_USER,
+                'user_id'       => array_value('pwulf', Zend_Registry::get('personas'))->contact_id,
+            )
+        ));
+        
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($this->_testEvent);
+//        echo $ics;
+
+        // assert organizer
+        $this->assertEquals(1, preg_match("/ATTENDEE;CN=\"Wulf, Paul\";CUTYPE=INDIVIDUAL;EMAIL=pwulf@tine20.org;PARTSTAT=\r\n ACCEPTED;ROLE=REQ-PARTICIPANT;RSVP=FALSE:mailto:pwulf@tine20.org\r\n/", $ics), 'ATTENDEE missing/broken');
+    }
+    
+    public function testExportAlarm()
+    {
+        // alarm handling is ugly...
+        $alarmTime = clone $this->_testEvent->dtstart;
+        $alarmTime->sub(15, Tinebase_DateTime::MODIFIER_MINUTE);
+            
+            
+        $this->_testEvent->alarms = new Tinebase_Record_RecordSet('Tinebase_Model_Alarm', array(
+            new Tinebase_Model_Alarm(array(
+                'minutes_before' => 15,
+                'alarm_time'     => $alarmTime
+            ), TRUE)
+        ));
+        
+        $exporter = new Calendar_Export_Ical();
+        $ics = $exporter->eventToIcal($this->_testEvent);
+//        echo $ics;
+
+        // assert organizer
+        $this->assertEquals(1, preg_match("/TRIGGER:-PT15M\r\n/", $ics), 'TRIGGER missing/broken');
+    }
 }
index b31aa5f..a8f2b6c 100644 (file)
@@ -6,46 +6,46 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Calendar_Frontend_CalDAVTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Calendar_Frontend_CalDAV\r
- */\r
-class Calendar_Frontend_CalDAVTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Calendar_Frontend_CalDAVTest::main');
+}
+
+/**
+ * Test class for Calendar_Frontend_CalDAV
+ */
+class Calendar_Frontend_CalDAVTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar CalDAV Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
+    {
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar CalDAV Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+     * @access protected
+     */
+    protected function setUp()
     {
         $this->objects['initialContainer'] = Tinebase_Container::getInstance()->addContainer(new Tinebase_Model_Container(array(
             'name'              => Tinebase_Record_Abstract::generateUID(),
@@ -55,15 +55,15 @@ class Calendar_Frontend_CalDAVTest extends PHPUnit_Framework_TestCase
         )));
         
         $this->objects['containerToDelete'][] = $this->objects['initialContainer'];
-    }\r
-\r
-    /**\r
-     * Tears down the fixture\r
-     * This method is called after a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function tearDown()\r
+    }
+
+    /**
+     * Tears down the fixture
+     * This method is called after a test is executed.
+     *
+     * @access protected
+     */
+    protected function tearDown()
     {
         foreach ($this->objects['containerToDelete'] as $containerId) {
             $containerId = $containerId instanceof Tinebase_Model_Container ? $containerId->getId() : $containerId;
index 8439e0e..a8961bf 100644 (file)
@@ -6,46 +6,46 @@
  * @license     http://www.gnu.org/licenses/agpl.html
  * @copyright   Copyright (c) 2011-2011 Metaways Infosystems GmbH (http://www.metaways.de)
  * @author      Lars Kneschke <l.kneschke@metaways.de>
- */\r
+ */
 
 /**
  * Test helper
  */
 require_once dirname(dirname(dirname(dirname(__FILE__)))) . DIRECTORY_SEPARATOR . 'TestHelper.php';
-\r
-if (!defined('PHPUnit_MAIN_METHOD')) {\r
-    define('PHPUnit_MAIN_METHOD', 'Calendar_Frontend_WebDAV_ContainerTest::main');\r
-}\r
-\r
-/**\r
- * Test class for Calendar_Frontend_WebDAV_Container\r
- */\r
-class Calendar_Frontend_WebDAV_ContainerTest extends PHPUnit_Framework_TestCase\r
-{\r
-    /**\r
-     * @var array test objects\r
-     */\r
+
+if (!defined('PHPUnit_MAIN_METHOD')) {
+    define('PHPUnit_MAIN_METHOD', 'Calendar_Frontend_WebDAV_ContainerTest::main');
+}
+
+/**
+ * Test class for Calendar_Frontend_WebDAV_Container
+ */
+class Calendar_Frontend_WebDAV_ContainerTest extends PHPUnit_Framework_TestCase
+{
+    /**
+     * @var array test objects
+     */
     protected $objects = array();
     
-    /**\r
-     * Runs the test methods of this class.\r
-     *\r
-     * @access public\r
-     * @static\r
-     */\r
-    public static function main()\r
-    {\r
-               $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Container Tests');\r
-        PHPUnit_TextUI_TestRunner::run($suite);\r
-       }\r
-\r
-    /**\r
-     * Sets up the fixture.\r
-     * This method is called before a test is executed.\r
-     *\r
-     * @access protected\r
-     */\r
-    protected function setUp()\r
+    /**
+     * Runs the test methods of this class.
+     *
+     * @access public
+     * @static
+     */
+    public static function main()
+    {
+        $suite  = new PHPUnit_Framework_TestSuite('Tine 2.0 Calendar WebDAV Container Tests');
+        PHPUnit_TextUI_TestRunner::run($suite);
+    }
+
+    /**
+     * Sets up the fixture.
+     * This method is called before a test is executed.
+     *
+ &nb