Skip to content

Commit d161df3

Browse files
author
Samuel Akopyan
committed
Added composer config files, testing
1 parent 73b36b5 commit d161df3

File tree

7 files changed

+1556
-12
lines changed

7 files changed

+1556
-12
lines changed

CHANGELOG

+24-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,35 @@
1-
Version 1.2.2 - 01 Jan, 2019
1+
Version 1.3.x -
2+
----------------------------
3+
- New: added CRecordEntity to ORM model
4+
- New: added phpunit tests
5+
- Enh: added possibility to use create() and update() methods in CActiveRecord
6+
- Enh: changes in components CHttpRequest
7+
- Enh: minor changes in database migrations
8+
- Enh: added possibility to define order for CSS and JS registration files
9+
- Enh: changes in helpers CValidator, CRss, CDebug, CHash, CGeoLocation, CConfig, CHtml
10+
- Enh: in CDataForm and CFormView added new type of validation: "regex"
11+
- Enh: code syntax changed according to new code convention
12+
- Enh: added possibility to define lazy loading (by default) for components
13+
- Enh: added possibility for lazy loading of core components via config
14+
- Enh: fixed wrong path of log file in CLogger component
15+
- Bug: fixed PHP7 syntax requirements in TCPDF vendor, CValidator helper
16+
- Bug: fixed overwriting existing vars in View rendeting
17+
18+
Version 1.2.2 - 01 Jan, 2019
219
----------------------------
320
- New: added possibility to define Captcha fields in CDataForm widget
421
- New: added possibility to define access permissions to controller actions via _accessRules() method
522
- New: added possibility to minify CSS and JS files via config file
23+
- New: added Arabic language to i18n
24+
- New: added possibility for new type of cache - data cache, changes in config file
25+
- New: added new helper CClass
26+
- Enh: minimum requirements for PHP is defined as 5.4.0
627
- Enh: allowed creating and removing cache files by cache ID
7-
- Enh: changes in helpers CFile, CDataForm, CHttpRequest, CValidator, CLocalTime
28+
- Enh: changes in components CHttpRequest
29+
- Enh: changes in helpers CFile, CDataForm, CValidator, CLocalTime
830
- Enh: added possibility to add watermark for uploaded images with CImage::addWatermark() in CDataForm
931
- Enh: added possibility to remove whole section in FormView by using 'disabled'=>true
1032
- Enh: minimum requirements for PHP is defined as 5.4.0
11-
- New: added Arabic language to i18n
1233
- Bug: fixed error on witting to file in CFile helper
1334
- Bug: fixed warning on double call of CView::renderContent()
1435

README

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ You will see the following files and directories:
1111
demos/ demo applications
1212
docs/ documentation
1313
framework/ framework source files
14+
tests/ PHPUnit tests
1415
utils/ some utilities
1516
requirements/ requirements checker
1617
tests/ tests

UPDATE

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ General update instructions
1616

1717
Updating from 1.1.5 to 1.2.2
1818
------------------------------
19-
- general update instructions
19+
- changed format for 'cache' in config file
2020

2121
Updating from 1.0.3 to 1.1.5
2222
------------------------------
@@ -56,7 +56,7 @@ Updating from 0.3.4 to 0.4.4
5656

5757
Updating from 0.2.4 to 0.3.4
5858
------------------------------
59-
- setting default time zone removed from A class and placed into CLocalTime component. Ex.: A::app()->getLocalTime()->setTimeZone('UTC');
59+
- setting default time zone removed from A class and placed into CLocalTime component. Ex.: A::app()->getLocalTime()->setTimeZone('UTC');
6060
- changed syntax for all widgets. Ex.: from CWidget::gridView(...) to CWidget::create('CGridView', ...)
6161
- rename all framework files that used by the code with prefix "C", ex: Model -> CModel, Controller -> CController, etc.
6262
- in widgets: CFormView, CFormValidation and CGridView attribute 'label'=>'' renamed into 'title'=>''

composer.json

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"config": {
3+
"sort-packages": true
4+
},
5+
"require": {
6+
"php": ">=7.1.0"
7+
},
8+
"require-dev": {
9+
"phpunit/phpunit": "^7.5"
10+
},
11+
"autoload": {
12+
"psr-4": {
13+
"Tests\\": "tests/"
14+
}
15+
},
16+
"scripts": {
17+
"tests-result": "phpunit --colors=always --log-junit test-results.xml",
18+
"tests": "phpunit --colors=always",
19+
"test": "phpunit --colors=always --filter"
20+
}
21+
}

0 commit comments

Comments
 (0)