Permalink
Browse files

Develop (#518)

* Replace direct usage of collectionArray with getter and setter

* Fix HTTP vs. HTTPS issue in PageCache module

* Search with multiple words

* Make Travis happy

* Update description and jQuery version

* Experimental mssql support (#506)

Initial MSSQL support

* Make Travis happy

* Make Appveyor happy

* Make Appveyor happy

* Make Appveyor happy

* Let's try to alter the  table

* Let's try to alter the  table

* Let's try to alter the  table

* Revert alter the  table

* Bunch of changes

* Disable tests to get suite back to work

* Get Papercut working

* Get Papercut working

* Switch to another mail faker

* Switch to another mail faker

* Switch to another mail faker

* Switch to another mail faker

* Switch to another mail faker

* Let do Papercut the work

* Let do Papercut the work

* Update .appveyor.yml

* Try to start Papercut.exe

* Try to start Papercut.exe

* Try to start Papercut.exe

* Try to start PapercutService via ZIP

* Try to start PapercutService via ZIP

* Try to start PapercutService via ZIP

* Add missing EOL normalize

* Extend the unit testing suite with mssql

* Reenable a couple of unit tests

* Update to PHPUnit 6

* Improve the CI processing

* Fix CI processing

* Fix CI processing

* Fix CI processing part2

* Fix CI processing part3

* Using dev-master for speedtrap

* Reenable the detector testing

* Move to composer-copy-file 0.2.0

* Refactor installer and testing suite

* Rename all instance related docblocks

* Move the Singleton stuff and installer factory to testcaseabstract

* Refactoring to the install factory part1

* Fix attachments for the Mailer class

* Re-enable Filter, Html and Db testing

* Re-enable Breadcrumb and Purifier  testing

* Fix error_reporting

* Re-enable first Controller and Module class

* Fix testing for modules

* Fix testing for modules

* Fix testing for modules and mailer

* Fix mailer class

* Add missing teardown to install testing

* Update the badge

* Update package.json

* Replace normalize with harmonize

* Re-enable most of the unit testing for controllers

* Re-enable the search controller testing

* Re-enable the search controller testing

* Re-enable the template testing

* Re-enable the view testing

* Remove outdated use statements

* Fix wording in result list testing

* Move error reporting to the bootstrap files

* 412 fix warnings with phpunit (#511)

* Fix warnings using PHPUnit

* Fix the easy ones

* Make Jenkins happy

* Re-enable Admin and Detector testing

* Make MSSQL happy and re-enable Content testing

* Re-enable the Console testing

* Cleanup testing suite part1

* Cleanup testing suite part2

* Cleanup testing suite part3

* Cleanup testing suite part4

* Improve the code coverage part1

* Cleanup testing suite part5

* Cleanup testing suite part5

* Cleanup testing suite part6

* Cleanup testing suite part7

* Cleanup testing suite part8

* Cleanup testing suite part9

* Update package.json

* Remove the fallback thing

* 89 refactoring startup (#514)

* Initial bootstrap setup

* Initial bootstrap setup part2

* Refactor startup to Bootstrap classes

* Refactor bootstrap classes and new module detection for CGI

* Make Travis happy

* Refactor bootstrap classes part2

* Fix breadcrumb rendering

* Fix module installation and add directory separator

* Improve content parser tags

* Fix social sharer JavaScript

* Restore the old separator

* Refactor modules to $itemElement

* Improve all _mail methods

* Unit testing for the bootstrap helpers

* Switch to dataprovider for the bootstrap testing

* run bootstrap testing in separate processes

* Bootstrap status test and auth status is an integer now

* Bootstrap session testing

* Bootstrap config workover

* Bootstrap common testing

* Bootstrap common testing part2

* Bootstrap common testing part3

* Bootstrap common testing part4 and cronjob testing

* Bootstrap router and content testing

* Next steps to Bootstrap router testing

* Improve Bootstrap and Parameter class

* Improve Bootstrap testing

* Improve Bootstrap testing for content

* Improve Bootstrap testing for content part2

* Cleanup the Bootstrap/Content class

* Cover the the Bootstrap/Cronjob class

* Fix Bootstrap testing and introduce new Detector class

* Add reset support to form validation

* Save installation values in session

* Update to latest jQuery

* Fix Server/Root

* Woff support for IIS
  • Loading branch information...
redaxmedia committed May 14, 2017
1 parent 04e6bed commit 23691431221afab8e7d7cd569e4926f2a84a244f
Showing with 5,633 additions and 4,174 deletions.
  1. +54 −0 .appveyor.yml
  2. +5 −3 .coveralls.yml
  3. +3 −0 .htaccess
  4. +9 −10 .scrutinizer.yml
  5. +1 −1 .stylelintrc
  6. +1 −1 .tocgen
  7. +6 −4 .travis.yml
  8. +3 −2 README.md
  9. +12 −1 assets/scripts/form.js
  10. +0 −1 assets/styles/_base.css
  11. +0 −86 assets/styles/normalize.css
  12. +1 −1 benchs/phpbench/includes/BenchCaseAbstract.php
  13. +16 −31 benchs/phpbench/includes/bootstrap.php
  14. +16 −21 composer.json
  15. +2 −4 console.php
  16. +24 −0 database/mssql/create/create_articles.mssql
  17. +20 −0 database/mssql/create/create_categories.mssql
  18. +16 −0 database/mssql/create/create_comments.mssql
  19. +19 −0 database/mssql/create/create_extras.mssql
  20. +19 −0 database/mssql/create/create_groups.mssql
  21. +13 −0 database/mssql/create/create_modules.mssql
  22. +8 −0 database/mssql/create/create_settings.mssql
  23. +16 −0 database/mssql/create/create_users.mssql
  24. +1 −0 database/mssql/drop/drop_articles.mssql
  25. +1 −0 database/mssql/drop/drop_categories.mssql
  26. +1 −0 database/mssql/drop/drop_comments.mssql
  27. +1 −0 database/mssql/drop/drop_extras.mssql
  28. +1 −0 database/mssql/drop/drop_groups.mssql
  29. +1 −0 database/mssql/drop/drop_modules.mssql
  30. +1 −0 database/mssql/drop/drop_settings.mssql
  31. +1 −0 database/mssql/drop/drop_users.mssql
  32. +6 −9 gruntfile.js
  33. +2 −2 includes/Admin/View/ModuleForm.php
  34. +20 −5 includes/Asset/Loader.php
  35. +2 −2 includes/Asset/Transport.php
  36. +11 −5 includes/Auth.php
  37. +6 −6 includes/Autoloader.php
  38. +114 −0 includes/Bootstrap/Auth.php
  39. +50 −0 includes/Bootstrap/BootstrapAbstract.php
  40. +37 −0 includes/Bootstrap/Cache.php
  41. +146 −0 includes/Bootstrap/Common.php
  42. +42 −0 includes/Bootstrap/Config.php
  43. +219 −0 includes/Bootstrap/Content.php
  44. +59 −0 includes/Bootstrap/Cronjob.php
  45. +34 −0 includes/Bootstrap/Detector.php
  46. +83 −0 includes/Bootstrap/Router.php
  47. +35 −0 includes/Bootstrap/Session.php
  48. +38 −0 includes/Bootstrap/Status.php
  49. +35 −39 includes/Breadcrumb.php
  50. +2 −2 includes/Cache.php
  51. +1 −1 includes/Captcha.php
  52. +1 −1 includes/Client/ClientAbstract.php
  53. +1 −1 includes/Config.php
  54. +7 −4 includes/Console/Command/Backup.php
  55. +6 −0 includes/Console/Command/Install.php
  56. +8 −5 includes/Console/Command/Restore.php
  57. +6 −12 includes/Console/Command/Status.php
  58. +3 −0 includes/Console/Command/Uninstall.php
  59. +4 −4 includes/Console/ConsoleAbstract.php
  60. +1 −1 includes/Console/Parser.php
  61. +4 −4 includes/Content/ParserAbstract.php
  62. +29 −19 includes/Content/Tag/Module.php
  63. +1 −1 includes/Content/Tag/TagAbstract.php
  64. +1 −1 includes/Content/Tag/TagInterface.php
  65. +28 −18 includes/Content/Tag/Template.php
  66. +5 −5 includes/Controller/Comment.php
  67. +10 −10 includes/Controller/ControllerAbstract.php
  68. +9 −9 includes/Controller/Install.php
  69. +2 −2 includes/Controller/Recover.php
  70. +4 −4 includes/Controller/Register.php
  71. +2 −2 includes/Controller/Reset.php
  72. +5 −5 includes/Controller/Search.php
  73. +43 −15 includes/Db.php
  74. +4 −4 includes/Detector/DetectorAbstract.php
  75. +1 −1 includes/Detector/Template.php
  76. +4 −4 includes/Directory.php
  77. +1 −1 includes/Filter/Alias.php
  78. +1 −1 includes/Filter/Boolean.php
  79. +1 −1 includes/Filter/Email.php
  80. +1 −1 includes/Filter/Html.php
  81. +1 −1 includes/Filter/Path.php
  82. +30 −0 includes/Filter/Search.php
  83. +1 −1 includes/Filter/Special.php
  84. +1 −1 includes/Filter/Url.php
  85. +1 −1 includes/Hash.php
  86. +1 −1 includes/Head/Base.php
  87. +41 −9 includes/Head/HeadAbstract.php
  88. +1 −1 includes/Head/HeadInterface.php
  89. +42 −11 includes/Head/Link.php
  90. +5 −2 includes/Head/Meta.php
  91. +6 −3 includes/Head/Script.php
  92. +1 −1 includes/Head/Title.php
  93. +2 −2 includes/Html/Form.php
  94. +129 −52 includes/Installer.php
  95. +1 −1 includes/Language.php
  96. +28 −28 includes/Mailer.php
  97. +8 −5 includes/Messenger.php
  98. +5 −6 includes/Module/Hook.php
  99. +8 −8 includes/Module/Module.php
  100. +1 −1 includes/Purifier.php
  101. +49 −59 includes/Reader.php
  102. +112 −33 includes/Router/Parameter.php
  103. +1 −1 includes/Router/Resolver.php
  104. +1 −1 includes/Server/Root.php
  105. +1 −1 includes/Server/ServerAbstract.php
  106. +2 −2 includes/Singleton.php
  107. +1 −1 includes/Template/Helper.php
  108. +1 −1 includes/Template/Helper/Canonical.php
  109. +1 −1 includes/Template/Helper/Client.php
  110. +1 −1 includes/Template/Helper/HelperAbstract.php
  111. +1 −1 includes/Template/Tag.php
  112. +1 −1 includes/Validator/Email.php
  113. +1 −1 includes/Validator/Login.php
  114. +2 −2 includes/Validator/Search.php
  115. +1 −1 includes/Validator/Url.php
  116. +0 −41 includes/View/Helper/Option.php
  117. +3 −2 includes/View/InstallForm.php
  118. +4 −10 includes/View/SystemStatus.php
  119. +2 −2 includes/View/ViewAbstract.php
  120. +2 −2 includes/admin_admin.php
  121. +8 −7 includes/admin_query.php
  122. +26 −30 includes/bootstrap.php
  123. +4 −4 includes/contents.php
  124. +1 −1 includes/navigation.php
  125. +23 −9 includes/router.php
  126. +0 −331 includes/startup.php
  127. +3 −5 index.php
  128. +2 −4 install.php
  129. +2 −2 languages/en.json
  130. +1 −1 modules/CallHome/CallHome.php
  131. +23 −2 modules/Contact/Contact.php
  132. +59 −44 modules/DirectoryLister/DirectoryLister.php
  133. +2 −2 modules/Experiments/docs/Howto.phtml
  134. +1 −1 modules/FeedGenerator/FeedGenerator.php
  135. +1 −1 modules/FeedReader/FeedReader.php
  136. +23 −20 modules/LightGallery/LightGallery.php
  137. +2 −2 modules/PageCache/PageCache.php
  138. +1 −1 modules/Preview/Preview.php
  139. +1 −1 modules/Preview/partials/accordion.phtml
  140. +21 −16 modules/SocialSharer/SocialSharer.php
  141. +9 −1 modules/SocialSharer/assets/scripts/social-sharer.js
  142. +1 −1 modules/SyntaxHighlighter/SyntaxHighlighter.php
  143. +7 −23 modules/TestDummy/TestDummy.php
  144. +6 −0 modules/TestDummy/database/mssql/create/create_test_dummy.mysql
  145. +1 −0 modules/TestDummy/database/mssql/drop/drop_test_dummy.mysql
  146. +1 −0 modules/TestDummy/docs/Howto.phtml
  147. +3 −3 modules/Tinymce/Tinymce.php
  148. +15 −11 package.json
  149. +9 −3 phpunit.xml
  150. +1 −1 templates/console/script.phtml
  151. +1 −1 templates/default/assets/styles/_variable.css
  152. +1 −1 templates/default/script.phtml
  153. +2 −1 templates/install/assets/scripts/install.js
  154. +1 −1 templates/install/script.phtml
  155. +1 −1 templates/skeleton/script.phtml
  156. +22 −18 tests/phpunit/Admin/Html/FormTest.php
  157. +24 −18 tests/phpunit/Admin/View/ArticleFormTest.php
  158. +24 −18 tests/phpunit/Admin/View/CategoryFormTest.php
  159. +13 −41 tests/phpunit/Admin/View/CommentFormTest.php
  160. +24 −18 tests/phpunit/Admin/View/ExtraFormTest.php
  161. +32 −18 tests/phpunit/Admin/View/GroupFormTest.php
  162. +77 −4 tests/phpunit/Admin/View/Helper/OptionTest.php
  163. +21 −18 tests/phpunit/Admin/View/ModuleFormTest.php
  164. +22 −18 tests/phpunit/Admin/View/SettingFormTest.php
  165. +21 −39 tests/phpunit/Admin/View/UserFormTest.php
  166. +2 −10 tests/phpunit/Asset/LoaderTest.php
  167. +0 −30 tests/phpunit/Asset/TransportTest.php
  168. +46 −20 tests/phpunit/AuthTest.php
  169. +1 −1 tests/phpunit/AutoloaderTest.php
  170. +133 −0 tests/phpunit/Bootstrap/AuthTest.php
  171. +62 −0 tests/phpunit/Bootstrap/CacheTest.php
  172. +82 −0 tests/phpunit/Bootstrap/CommonTest.php
  173. +150 −0 tests/phpunit/Bootstrap/ContentTest.php
  174. +89 −0 tests/phpunit/Bootstrap/CronjobTest.php
  175. +62 −0 tests/phpunit/Bootstrap/DetectorTest.php
  176. +82 −0 tests/phpunit/Bootstrap/RouterTest.php
  177. +68 −0 tests/phpunit/Bootstrap/SessionTest.php
  178. +105 −0 tests/phpunit/Bootstrap/StatusTest.php
  179. +54 −67 tests/phpunit/BreadcrumbTest.php
  180. +28 −28 tests/phpunit/CacheTest.php
  181. +26 −12 tests/phpunit/CaptchaTest.php
  182. +0 −20 tests/phpunit/Client/ClientTest.php
  183. +8 −22 tests/phpunit/ConfigTest.php
  184. +1 −65 tests/phpunit/Console/Command/BackupTest.php
  185. +0 −50 tests/phpunit/Console/Command/CacheTest.php
  186. +8 −53 tests/phpunit/Console/Command/ConfigTest.php
  187. +0 −50 tests/phpunit/Console/Command/HelpTest.php
  188. +15 −61 tests/phpunit/Console/Command/InstallTest.php
  189. +4 −66 tests/phpunit/Console/Command/RestoreTest.php
  190. +16 −42 tests/phpunit/Console/Command/SettingTest.php
  191. +1 −51 tests/phpunit/Console/Command/StatusTest.php
  192. +10 −58 tests/phpunit/Console/Command/UninstallTest.php
  193. +0 −50 tests/phpunit/Console/ConsoleTest.php
  194. +0 −20 tests/phpunit/Console/ParserTest.php
  195. +30 −38 tests/phpunit/Content/ParserTest.php
  196. +38 −50 tests/phpunit/Controller/CommentTest.php
  197. +13 −73 tests/phpunit/Controller/InstallTest.php
  198. +38 −56 tests/phpunit/Controller/LoginTest.php
  199. +23 −29 tests/phpunit/Controller/LogoutTest.php
  200. +28 −48 tests/phpunit/Controller/RecoverTest.php
  201. +28 −60 tests/phpunit/Controller/RegisterTest.php
  202. +32 −58 tests/phpunit/Controller/ResetTest.php
  203. +68 −79 tests/phpunit/Controller/SearchTest.php
  204. +43 −21 tests/phpunit/DbTest.php
  205. +35 −50 tests/phpunit/Detector/DetectorTest.php
  206. +1 −1 tests/phpunit/DirectoryTest.php
  207. +34 −0 tests/phpunit/Filter/HtmlTest.php
  208. +57 −0 tests/phpunit/Filter/SearchTest.php
  209. +0 −20 tests/phpunit/HashTest.php
  210. +0 −20 tests/phpunit/Head/BaseTest.php
  211. +8 −8 tests/phpunit/Head/LinkTest.php
  212. +1 −1 tests/phpunit/Head/MetaTest.php
  213. +2 −2 tests/phpunit/Head/ScriptTest.php
  214. +0 −20 tests/phpunit/Head/TitleTest.php
  215. +22 −18 tests/phpunit/Html/FormTest.php
  216. +8 −79 tests/phpunit/InstallerTest.php
  217. +0 −23 tests/phpunit/LanguageTest.php
  218. +82 −5 tests/phpunit/MailerTest.php
  219. +2 −22 tests/phpunit/MessengerTest.php
  220. +40 −12 tests/phpunit/Module/HookTest.php
  221. +48 −47 tests/phpunit/Module/ModuleTest.php
  222. +34 −0 tests/phpunit/PurifierTest.php
  223. +41 −81 tests/phpunit/ReaderTest.php
  224. +0 −21 tests/phpunit/RegistryTest.php
  225. +0 −21 tests/phpunit/RequestTest.php
  226. +43 −62 tests/phpunit/Router/ParameterTest.php
  227. +0 −20 tests/phpunit/Router/ResolverTest.php
  228. +5 −14 tests/phpunit/Server/ServerTest.php
  229. +60 −63 tests/phpunit/Template/HelperTest.php
  230. +22 −28 tests/phpunit/Template/TagTest.php
  231. +92 −4 tests/phpunit/TestCaseAbstract.php
  232. +20 −9 tests/phpunit/Validator/CaptchaTest.php
  233. +18 −35 tests/phpunit/View/CommentFormTest.php
  234. +0 −30 tests/phpunit/View/ConsoleFormTest.php
  235. +0 −52 tests/phpunit/View/Helper/OptionTest.php
  236. +0 −30 tests/phpunit/View/InstallFormTest.php
  237. +18 −35 tests/phpunit/View/LoginFormTest.php
  238. +18 −35 tests/phpunit/View/RecoverFormTest.php
  239. +18 −35 tests/phpunit/View/RegisterFormTest.php
  240. +18 −35 tests/phpunit/View/ResetFormTest.php
  241. +36 −73 tests/phpunit/View/ResultListTest.php
  242. +0 −30 tests/phpunit/View/SearchFormTest.php
  243. +0 −30 tests/phpunit/View/SystemStatusTest.php
  244. +6 −45 tests/phpunit/bootstrap.php
  245. +4 −5 tests/provider/Admin/View/Helper/option.json
  246. +4 −4 tests/provider/Admin/View/article_form_render.json
  247. +4 −4 tests/provider/Admin/View/category_form_render.json
  248. +4 −4 tests/provider/Admin/View/comment_form_render.json
  249. +4 −4 tests/provider/Admin/View/extra_form_render.json
  250. +6 −6 tests/provider/Admin/View/group_form_render.json
  251. +4 −4 tests/provider/Admin/View/module_form_render.json
  252. +5 −5 tests/provider/Admin/View/user_form_render.json
  253. +80 −0 tests/provider/Bootstrap/auth.json
  254. +32 −0 tests/provider/Bootstrap/cache.json
  255. +42 −0 tests/provider/Bootstrap/common.json
  256. +218 −0 tests/provider/Bootstrap/content.json
  257. +20 −0 tests/provider/Bootstrap/cronjob.json
  258. +8 −0 tests/provider/Bootstrap/detector.json
  259. +88 −0 tests/provider/Bootstrap/router.json
  260. +14 −0 tests/provider/Bootstrap/session.json
  261. +24 −0 tests/provider/Bootstrap/status.json
  262. +18 −18 tests/provider/Console/parser_get_argument.json
  263. +15 −15 tests/provider/Console/parser_get_option.json
  264. +4 −4 tests/provider/Content/parser_module.json
  265. +3 −3 tests/provider/Controller/comment_process.json
  266. +2 −2 tests/provider/Controller/comment_process_failure.json
  267. +33 −6 tests/provider/Controller/search_process.json
  268. +29 −29 tests/provider/Detector/language.json
  269. +26 −26 tests/provider/Detector/template.json
  270. +18 −0 tests/provider/Filter/search.json
  271. +2 −2 tests/provider/Html/form_token.json
  272. +91 −43 tests/provider/Router/parameter.json
  273. +2 −2 tests/provider/Router/resolver.json
  274. +5 −5 tests/provider/Template/helper_get_canonical.json
  275. +8 −8 tests/provider/Template/helper_get_description.json
  276. +8 −8 tests/provider/Template/helper_get_keywords.json
  277. +8 −8 tests/provider/Template/helper_get_title.json
  278. +1 −1 tests/provider/Validator/alias.json
  279. +0 −12 tests/provider/View/Helper/option.json
  280. +16 −6 tests/provider/View/result_list_render.json
  281. +15 −12 tests/provider/View/system_status_render.json
  282. +5 −4 tests/provider/View/system_status_validate_error.json
  283. +2 −2 tests/provider/View/system_status_validate_warning.json
  284. +30 −30 tests/provider/breadcrumb_get_array.json
  285. +9 −9 tests/provider/breadcrumb_render.json
  286. +10 −0 tests/provider/config_parse.json
  287. +6 −0 tests/provider/db_init.json
  288. +2 −2 tests/provider/db_language.json
  289. +1 −5 tests/provider/mailer.json
  290. +10 −10 tests/provider/messenger_error.json
  291. +10 −10 tests/provider/messenger_info.json
  292. +13 −13 tests/provider/messenger_render.json
  293. +10 −10 tests/provider/messenger_success.json
  294. +7 −7 tests/provider/messenger_warning.json
  295. +6 −3 tests/provider/reader.json
  296. +5 −5 tests/provider/reader.xml
  297. +9 −0 web.config
View
@@ -0,0 +1,54 @@
build: false
platform:
- x64
environment:
MSSQL_VERSION: 4.1.5
PAPERCUT_VERSION: 4.8.0.1
matrix:
- PHP_VERSION_PATCH: 7.0.17
PHP_VERSION_MINOR: 7.0
PHP_PATH: C:\tools\php70
SQLSRV_FILE: php_pdo_sqlsrv_7_nts.dll
- PHP_VERSION_PATCH: 7.1.3
PHP_VERSION_MINOR: 7.1
PHP_PATH: C:\tools\php71
SQLSRV_FILE: php_pdo_sqlsrv_71_nts.dll
matrix:
fast_finish: true
services:
- mssql2016
init:
- SET PATH=C:\Program Files\OpenSSL;%PATH%
- SET PATH=%PHP_PATH%;%PATH%
- SET COMPOSER_NO_INTERACTION=1
install:
- sc config wuauserv start=auto
- net start wuauserv
- choco upgrade chocolatey
- choco install openssl.light
- choco install php -version %PHP_VERSION_PATCH%
- echo extension_dir=ext >> %PHP_PATH%\php.ini
- echo extension=php_curl.dll >> %PHP_PATH%\php.ini
- echo extension=php_mbstring.dll >> %PHP_PATH%\php.ini
- echo extension=php_openssl.dll >> %PHP_PATH%\php.ini
- echo extension=%SQLSRV_FILE% >> %PHP_PATH%\php.ini
- appveyor DownloadFile https://github.com/Microsoft/msphpsql/releases/download/%MSSQL_VERSION%-Windows/%PHP_VERSION_MINOR%.zip
- 7z x %PHP_VERSION_MINOR%.zip
- copy %PHP_VERSION_MINOR%\x64 %PHP_PATH%\ext
- appveyor DownloadFile https://github.com/ChangemakerStudios/Papercut/releases/download/%PAPERCUT_VERSION%/PapercutService.%PAPERCUT_VERSION%.zip
- 7z x PapercutService.%PAPERCUT_VERSION%.zip -oPapercutService
- PapercutService\Papercut.Service.exe install --sudo
- appveyor DownloadFile https://getcomposer.org/composer.phar
- php composer.phar global require hirak/prestissimo
- php composer.phar install
test_script:
- PapercutService\Papercut.Service.exe start
- SET DB_URL=mssql://sa:Password12!@(local)\SQL2016/master
- vendor/bin/phpunit --configuration=phpunit.xml
View
@@ -1,6 +1,8 @@
service_name: travis-ci
coverage_clover:
- build/mysql.xml
- build/pgsql.xml
- build/sqlite.xml
- build/mysql.xml
- build/pgsql.xml
- build/sqlite.xml
json_path: build/coveralls.json
View
@@ -5,6 +5,7 @@
allow from all
</filesmatch>
<ifmodule mod_deflate.c>
setenv mod_deflate on
<filesmatch \.(css|ico|jpg|js|svg|png|webp|woff|woff2)$>
setoutputfilter deflate
</filesmatch>
@@ -14,6 +15,7 @@
secfilterscanpost off
</ifmodule>
<ifmodule mod_rewrite.c>
setenv mod_rewrite on
rewriteengine on
rewritecond %{request_filename} -f
rewriterule ^(.*) $1 [l]
@@ -25,6 +27,7 @@
rewriterule ^([^.]*).([\w]{3,})$ ?p=$1&t=$2 [l]
</ifmodule>
<ifmodule mod_headers.c>
setenv mod_headers on
<filesmatch \.(css|ico|jpg|js|svg|png|webp|woff|woff2)$>
header set cache-control max-age=604800
</filesmatch>
View
@@ -1,15 +1,14 @@
filter:
excluded_paths:
- includes/admin_admin.php
- includes/admin_list.php
- includes/admin_query.php
- includes/admin_router.php
- includes/comments.php
- includes/contents.php
- includes/navigation.php
- includes/query.php
- includes/router.php
- includes/startup.php
- includes/admin_admin.php
- includes/admin_list.php
- includes/admin_query.php
- includes/admin_router.php
- includes/comments.php
- includes/contents.php
- includes/navigation.php
- includes/query.php
- includes/router.php
tools:
external_code_coverage: true
View
@@ -27,7 +27,7 @@
"length-zero-no-unit": true,
"max-empty-lines": 1,
"max-nesting-depth": 3,
"order/declaration-block-properties-alphabetical-order": true,
"order/properties-alphabetical-order": true,
"selector-combinator-space-after": "always",
"selector-combinator-space-before": "always",
"selector-no-id": true,
View
@@ -1,6 +1,6 @@
{
"toc":
{
"foot": " *\n * @since 3.0.1\n *\n * @package Redaxscript\n * @author Henry Ruhs\n"
"foot": " *\n * @since 3.1.0\n *\n * @package Redaxscript\n * @author Henry Ruhs\n"
}
}
View
@@ -9,6 +9,7 @@ php:
- nightly
matrix:
fast_finish: true
allow_failures:
- php: nightly
@@ -17,10 +18,11 @@ services:
- postgresql
before_install:
- if [ ${TRAVIS_PHP_VERSION:0:3} == "5.4" ] || [ ${TRAVIS_PHP_VERSION:0:3} == "5.5" ]; then composer require brianium/paratest 0.13.3 phpbench/phpbench 0.10.0 phpunit/phpunit 4.8.27 sebastian/phpcpd 2.0.4 phpunit/phpcov 2.0.2 --dev --no-update; fi
- if [ ${TRAVIS_PHP_VERSION:0:1} == "5" ]; then composer require brianium/paratest 0.13.3 johnkary/phpunit-speedtrap 1.0.1 phpbench/phpbench 0.10.0 phpunit/phpunit 4.8.35 sebastian/phpcpd 2.0.4 phpunit/phpcov 2.0.2 --dev --no-update; fi
- composer global require hirak/prestissimo
install:
- sudo apt-get update
- sudo apt-get install libxml2-dev
- composer self-update
- composer install
@@ -37,17 +39,17 @@ before_script:
- mysqladmin -u root password test
- psql -U postgres -c 'create database test'
- psql -U postgres -c 'alter user postgres with password '\'test\'
- mkdir build
script:
- grunt
- mailcatcher
- mkdir build
- DB_URL=mysql://root:test@127.0.0.1/test grunt phpunit --coverage-clover=build/mysql.xml
- DB_URL=postgres://postgres:test@127.0.0.1/test grunt phpunit --coverage-clover=build/pgsql.xml
- DB_URL=sqlite://test.sqlite grunt phpunit --coverage-clover=build/sqlite.xml
after_script:
- php vendor/bin/coveralls
after_success:
- vendor/bin/coveralls -v
- wget https://scrutinizer-ci.com/ocular.phar
- php ocular.phar code-coverage:upload --format=php-clover build/sqlite.xml
View
@@ -1,12 +1,13 @@
Redaxscript
===========
> A modern, ultra lightweight and rocket fast Content Management System for SQLite, MySQL and PostgreSQL.
> A modern, ultra lightweight and rocket fast Content Management System for SQLite, MSSQL, MySQL and PostgreSQL
[![Build Status](https://img.shields.io/travis/redaxmedia/redaxscript.svg)](https://travis-ci.org/redaxmedia/redaxscript)
[![Build Status](https://img.shields.io/appveyor/ci/redaxmedia/redaxscript.svg)](https://ci.appveyor.com/project/redaxmedia/redaxscript)
[![Scrutinizer Code Quality](https://img.shields.io/scrutinizer/g/redaxmedia/redaxscript.svg)](https://scrutinizer-ci.com/g/redaxmedia/redaxscript)
[![Coverage Status](https://img.shields.io/coveralls/redaxmedia/redaxscript.svg)](https://coveralls.io/r/redaxmedia/redaxscript)
[![PHP 7 Ready](http://php7ready.timesplinter.ch/redaxmedia/redaxscript/badge.svg)](https://travis-ci.org/redaxmedia/redaxscript)
[![PHP 7 Ready](https://php7ready.timesplinter.ch/redaxmedia/redaxscript/badge.svg)](https://travis-ci.org/redaxmedia/redaxscript)
[![Dependency Status](https://gemnasium.com/badges/github.com/redaxmedia/redaxscript.svg)](https://gemnasium.com/github.com/redaxmedia/redaxscript)
[![Docker Automated build](https://img.shields.io/docker/automated/redaxmedia/redaxscript.svg)](https://hub.docker.com/r/redaxmedia/redaxscript/)
[![Latest Stable Version](https://img.shields.io/packagist/v/redaxmedia/redaxscript.svg)](https://packagist.org/packages/redaxmedia/redaxscript)
View
@@ -341,7 +341,18 @@
form.trigger('success');
buttonSubmit.removeAttr('disabled');
}
}).attr('novalidate', 'novalidate');
})
.on('unvalidate reset', function ()
{
var form = $(this),
buttonSubmit = form.find(options.element.buttonSubmit),
field = form.find(options.element.field);
field.removeClass('rs-js-note-error rs-is-error');
field.siblings('label').removeClass('rs-label-message').removeAttr('data-message');
buttonSubmit.removeAttr('disabled');
})
.attr('novalidate', 'novalidate');
});
};
View
@@ -1,2 +1 @@
@import 'normalize.css';
@import 'animate.css';
@@ -1,86 +0,0 @@
/**
* @tableofcontents
*
* 1. reset
* 2. normalize
*
* @since 3.0.0
*
* @package Redaxscript
* @author Henry Ruhs
*/
/* @section 1. reset */
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, button, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, embed, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, html, i, iframe, img, ins, input, kbd, label, legend, li, mark, menu, nav, object, ol, output, p, pre, progress, q, ruby, s, samp, section, select, small, span, strike, strong, sub, summary, sup, table, tbody, td, textarea, tfoot, th, thead, time, tr, tt, u, ul, var, video
{
border: 0;
margin: 0;
outline: 0;
padding: 0;
vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, main, menu, nav, section, summary
{
display: block;
}
blockquote, q
{
quotes: none;
}
blockquote:before, blockquote:after, q:before, q:after
{
content: '';
}
legend
{
max-width: 100%;
}
li
{
list-style: none;
}
table
{
border-collapse: collapse;
border-spacing: 0;
}
/* @section 2. normalize */
button, input, select, textarea
{
box-sizing: border-box;
font: inherit;
}
button::-moz-focus-inner,
input[type="button"]::-moz-focus-inner,
input[type="reset"]::-moz-focus-inner,
input[type="submit"]::-moz-focus-inner
{
border: 0;
}
input[type="search"]
{
border-radius: 0;
}
input[type="search"]::-ms-clear
{
display: none;
}
input[type="search"],
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration
{
-webkit-appearance: none;
}
@@ -1,7 +1,7 @@
<?php
namespace Redaxscript\Benchs;
error_reporting(E_ERROR || E_PARSE);
error_reporting(E_ERROR | E_PARSE);
/**
* BenchCaseAbstract
@@ -1,9 +1,11 @@
<?php
namespace Redaxscript;
error_reporting(E_ERROR | E_PARSE);
/* autoload */
include_once('includes/Autoloader.php');
include_once('includes' . DIRECTORY_SEPARATOR . 'Autoloader.php');
include_once('BenchCaseAbstract.php');
/* init */
@@ -13,19 +15,21 @@
/* get instance */
$registry = Registry::getInstance();
$request = Request::getInstance();
$config = Config::getInstance();
/* request and config */
$request->init();
$config->init();
/* set config */
/* config */
$config->set('dbType', 'sqlite');
$config->set('dbHost', ':memory:');
$dbUrl = getenv('DB_URL');
if ($dbUrl)
{
$config->parse($dbUrl);
}
else
{
$config->set('dbType', 'sqlite');
$config->set('dbHost', ':memory:');
}
$config->set('dbPrefix', 'test_');
/* database */
@@ -35,23 +39,4 @@
/* language */
$language = Language::getInstance();
$language->init();
/* installer */
$installer = new Installer($registry, $request, $language, $config);
$installer->init();
$installer->rawDrop();
$installer->rawCreate();
$installer->insertData(
[
'adminName' => 'Test',
'adminUser' => 'test',
'adminPassword' => 'test',
'adminEmail' => 'test@test.com'
]);
/* module hook */
Module\Hook::construct($registry, $request, $language, $config);
Module\Hook::init();
$language->init();
Oops, something went wrong.

0 comments on commit 2369143

Please sign in to comment.