Skip to content

Commit

Permalink
Added composer config files, testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Akopyan committed Jan 23, 2020
1 parent 73b36b5 commit d161df3
Show file tree
Hide file tree
Showing 7 changed files with 1,556 additions and 12 deletions.
27 changes: 24 additions & 3 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,14 +1,35 @@
Version 1.2.2 - 01 Jan, 2019
Version 1.3.x -
----------------------------
- New: added CRecordEntity to ORM model
- New: added phpunit tests
- Enh: added possibility to use create() and update() methods in CActiveRecord
- Enh: changes in components CHttpRequest
- Enh: minor changes in database migrations
- Enh: added possibility to define order for CSS and JS registration files
- Enh: changes in helpers CValidator, CRss, CDebug, CHash, CGeoLocation, CConfig, CHtml
- Enh: in CDataForm and CFormView added new type of validation: "regex"
- Enh: code syntax changed according to new code convention
- Enh: added possibility to define lazy loading (by default) for components
- Enh: added possibility for lazy loading of core components via config
- Enh: fixed wrong path of log file in CLogger component
- Bug: fixed PHP7 syntax requirements in TCPDF vendor, CValidator helper
- Bug: fixed overwriting existing vars in View rendeting

Version 1.2.2 - 01 Jan, 2019
----------------------------
- New: added possibility to define Captcha fields in CDataForm widget
- New: added possibility to define access permissions to controller actions via _accessRules() method
- New: added possibility to minify CSS and JS files via config file
- New: added Arabic language to i18n
- New: added possibility for new type of cache - data cache, changes in config file
- New: added new helper CClass
- Enh: minimum requirements for PHP is defined as 5.4.0
- Enh: allowed creating and removing cache files by cache ID
- Enh: changes in helpers CFile, CDataForm, CHttpRequest, CValidator, CLocalTime
- Enh: changes in components CHttpRequest
- Enh: changes in helpers CFile, CDataForm, CValidator, CLocalTime
- Enh: added possibility to add watermark for uploaded images with CImage::addWatermark() in CDataForm
- Enh: added possibility to remove whole section in FormView by using 'disabled'=>true
- Enh: minimum requirements for PHP is defined as 5.4.0
- New: added Arabic language to i18n
- Bug: fixed error on witting to file in CFile helper
- Bug: fixed warning on double call of CView::renderContent()

Expand Down
1 change: 1 addition & 0 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ You will see the following files and directories:
demos/ demo applications
docs/ documentation
framework/ framework source files
tests/ PHPUnit tests
utils/ some utilities
requirements/ requirements checker
tests/ tests
Expand Down
4 changes: 2 additions & 2 deletions UPDATE
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ General update instructions

Updating from 1.1.5 to 1.2.2
------------------------------
- general update instructions
- changed format for 'cache' in config file

Updating from 1.0.3 to 1.1.5
------------------------------
Expand Down Expand Up @@ -56,7 +56,7 @@ Updating from 0.3.4 to 0.4.4

Updating from 0.2.4 to 0.3.4
------------------------------
- setting default time zone removed from A class and placed into CLocalTime component. Ex.: A::app()->getLocalTime()->setTimeZone('UTC');
- setting default time zone removed from A class and placed into CLocalTime component. Ex.: A::app()->getLocalTime()->setTimeZone('UTC');
- changed syntax for all widgets. Ex.: from CWidget::gridView(...) to CWidget::create('CGridView', ...)
- rename all framework files that used by the code with prefix "C", ex: Model -> CModel, Controller -> CController, etc.
- in widgets: CFormView, CFormValidation and CGridView attribute 'label'=>'' renamed into 'title'=>''
Expand Down
21 changes: 21 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{
"config": {
"sort-packages": true
},
"require": {
"php": ">=7.1.0"
},
"require-dev": {
"phpunit/phpunit": "^7.5"
},
"autoload": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"tests-result": "phpunit --colors=always --log-junit test-results.xml",
"tests": "phpunit --colors=always",
"test": "phpunit --colors=always --filter"
}
}
Loading

0 comments on commit d161df3

Please sign in to comment.