Commit Graph

1067 Commits

Author SHA1 Message Date
Benjamin Wöster
5e0f6604e8 mod: don't create app in bootstrap script, unit tests do it themselves
add: option to destroy app after each test to find unit tests that fail
     to require an app
2013-05-09 21:56:36 +02:00
Benjamin Wöster
d4b30e26c2 allow unit tests to requireApp() on setUp() 2013-05-09 20:41:57 +02:00
Rusinov Maxim
0ad55efba9 Merge branch 'master' of git://github.com/yiisoft/yii2 into 15-unit-tests-of-sqlite-driver 2013-05-09 23:37:39 +06:00
Rusinov Maxim
452be102c6 Added newline at end files. 2013-05-09 23:27:19 +06:00
Rusinov Maxim
d712605a71 Added and resolved Sqlite tests #15. 2013-05-09 23:12:18 +06:00
Antonio Ramirez
18f23ff143 Merge branch 'master' of git://github.com/yiisoft/yii2 into 196-add-popvalue-method
* 'master' of git://github.com/yiisoft/yii2:
  Updated framework paths in composer.json
  Moved "framework" to "iii".
  Fixed Yii::importNamespaces() bug.
  Fixes issue #174: make URL parameters available in $_GET.
  refactoring.
  Removed static variable from autoload per qiangxue's suggestion
  Renamed yii.php -> Yii.php for class, filename consitency
  created StringHelper::basename()
  Fixed YiiBaseTest echo
  Check if trait was loaded
2013-05-09 18:26:16 +02:00
Antonio Ramirez
5da62fab3a #196 refactored method name 2013-05-09 18:23:10 +02:00
Qiang Xue
0d814fa523 Moved "framework" to "iii". 2013-05-09 12:00:15 -04:00
Carsten Brandt
2387e59c4e Renamed yii.php -> Yii.php for class, filename consitency
See https://github.com/yiisoft/yii2/issues/123#issuecomment-17657374
Issue #123
2013-05-09 13:31:43 +02:00
Carsten Brandt
776162b05e created StringHelper::basename()
In contrast to php function basename() It that always uses \ and /
as directory separator.
It is needed for use on Classnames that contain namespaces.
Fixes #192
2013-05-09 13:16:40 +02:00
Carsten Brandt
849740e6cc Fixed YiiBaseTest echo
it echoed Yii version which is not necessary
2013-05-09 13:16:40 +02:00
Antonio Ramirez
e2a57e4b88 Enhance ArrayHelper with popValue method 2013-05-09 12:42:50 +02:00
Alexander Kochetov
ca9194a365 Code style fixes 2013-05-07 20:17:35 +04:00
Qiang Xue
dd5969147d move JsExpression to web. 2013-05-07 07:39:24 -04:00
Carsten Brandt
f59f39087f Merge branch 'master' of github.com:yiisoft/yii2 into redis
* 'master' of github.com:yiisoft/yii2: (87 commits)
  Added dirty attribute description.
  Fixed doc about renderers.
  Finished the initial draft of upgrading instructions
  Fix attaching behavior via config
  Changed default value of View::renderers.
  Fix attaching behavior via config
  Menu WIP
  upgrading instructions WIP
  Refactored Breadcrumbs.
  Fixes issue #54: Implemented Breadcrumbs.
  Added Breadcrumbs.php
  Fixes issue #134
  Rollback word consistencty over entire codebase (ref. #139).
  Add ensureBehaviors() to detachBehavior*()
  Fixes issue #124.
  code reorganization fix.
  reorganized app code. removed app template from framework folder.
  Fixes issue #128.
  Fixes issue #124.
  Add Newlines
  ...

Conflicts:
	tests/unit/framework/caching/ApcCacheTest.php
2013-05-07 01:53:24 +02:00
Qiang Xue
034d88e5e4 Fixes issue #134 2013-05-06 08:04:35 -04:00
Zander Baldwin
4be9e195c2 Add Newlines
Appended newlines to every PHP document that did not have a newline as the last character in the file.
2013-05-05 17:04:55 +01:00
Rinat Silnov
802c0c94a8 Check apc.enable_cli for ApcTestCase unit tests 2013-05-05 19:18:04 +04:00
Qiang Xue
6e779e02d6 Fixed issue #7: ArrayHelper::multisort is not compatible with PHP 5.3 2013-05-04 21:24:00 -04:00
Rinat Silnov
1a317ebe31 Fixed VarDumper::dump for objects
Otherwise it throws an exception that "Object of class ClassName
could not be converted to string"
2013-05-04 23:54:59 +04:00
Taufan Aditya
51de757140 Use travis as user instead root within DSN 2013-05-05 00:10:17 +07:00
Taufan Aditya
985f076b2d Testsuite config 2013-05-04 21:47:01 +07:00
Carsten Brandt
38a1938847 documentation and code style fixes 2013-05-01 21:15:57 +02:00
Qiang Xue
53a7b82672 Renamed JsonExpression to JsExpression. 2013-05-01 14:46:24 -04:00
Qiang Xue
5fd27b7cbb Added Json and JsonExpression. 2013-05-01 14:18:23 -04:00
Carsten Brandt
fad011274c added missing init() method to Cache class 2013-05-01 18:42:38 +02:00
Carsten Brandt
3b4abfffce Added note to ApcCacheTest
testExpire is failing on PHP 5.3.10
2013-05-01 18:03:22 +02:00
Carsten Brandt
3d3f711d6a testing and fixing RedisCache 2013-05-01 18:02:53 +02:00
Carsten Brandt
9634b72820 Merge branch 'master' into redis
* master: (27 commits)
  form wip
  form wip
  form WIP
  script WIP
  Minor change about twig alias.
  Added Controller::populate().
  Added bootstrap. form WIP
  form wip
  form wip
  Refactored UrlManager.
  refactored AccessControl
  activeform WIP
  Removed the $value parameter from radio and checkbox.
  Support alternative URL rule syntax.
  Support default standard component class.
  updated view renderers docs
  activeform wip
  Refactored view renderers.
  updated view renderers docs
  refactoring activeform.
  ...
2013-05-01 16:24:28 +02:00
Carsten Brandt
eac48ff2a8 Redis cache implementation 2013-05-01 16:12:18 +02:00
Qiang Xue
a4b7d493b0 Removed the $value parameter from radio and checkbox. 2013-04-27 22:03:14 -04:00
Qiang Xue
399a53cfc4 activeform wip 2013-04-27 16:51:05 -04:00
Carsten Brandt
79982c9848 Redis Insert, Update, Delete and Find is ready and roughly unit tested
relations are not working yet
2013-04-24 18:33:11 +02:00
Carsten Brandt
3e3290164c Merge remote-tracking branch 'origin/master' into redis
* origin/master: (104 commits)
  Fixed typo in query builder and reverted changes to DbCache.php
  added note about enabling APC cache for CLI
  more assertions for cache test
  fixed dbcache multiget
  fixed Html test under Windows (line endings)
  fixed DB quoting typo
  create a webapp in test bootstrap
  updated expected exception message
  Added a basic app.
  initial implementation of asset command.
  script WIP
  script command WIP
  Fixed bug in yiic.php. Refactoring AssetConverter.
  adjusted default app layout
  refactoring and documentation for asset/script management.
  Finished asset converter.
  removed unnecessary code, added comment about displaying errors
  better handling of errors during rendering an error
  safer exception rendering
  turn asset manager into a getter.
  ...
2013-04-24 13:21:24 +02:00
Alexander Makarov
09dbaeb700 more assertions for cache test 2013-04-23 15:00:41 +04:00
Alexander Makarov
08be696434 fixed Html test under Windows (line endings) 2013-04-23 14:32:54 +04:00
Alexander Makarov
a9215ceddd create a webapp in test bootstrap 2013-04-23 14:11:55 +04:00
Alexander Makarov
173706f516 updated expected exception message 2013-04-23 14:11:40 +04:00
Qiang Xue
7599d7860c refactored getAlias and setAlias. 2013-04-11 22:55:31 -04:00
Qiang Xue
122bd231b4 modified Application constructor signature. 2013-04-09 22:43:04 -04:00
Qiang Xue
a421f9f1ab refactored component event. 2013-04-05 19:29:10 -04:00
Qiang Xue
597082a11a Automatic table and column name quoting. 2013-03-30 18:28:54 -04:00
Alexander Makarov
9da81894be moved helper test from util namespace to helpers namespace, added tests for StringHelper 2013-03-29 18:23:50 +04:00
Carsten Brandt
4d59587320 fixed constructor overriding in test classes
now use setUp() instead
2013-03-29 01:10:03 +01:00
Carsten Brandt
f4ebd91cfb Merge branch 'master' into redis
* master: (117 commits)
  More Model tests
  Better validation rules validity check
  Some tests for Model
  A bit more friendly behavior for unsetting a model attribute
  User WIP.
  Fixed Model::getFirstErrors()
  Finished AccessControl.
  Finished HttpCache.
  User WIP
  line ending fix.
  refactoring cache and db references.
  Fixed session bug.
  Finishes flash feature.
  refactored url creation shortcut method.
  HttpCache WIP.
  Finished AccessControl and HttpCache.
  Finished PageCache.
  finished fragment caching.
  fragment cache WIP
  bug fixes.
  ...
2013-03-29 01:03:56 +01:00
Carsten Brandt
0d2f5028ef Finished Redis Connection class 2013-03-29 01:02:35 +01:00
Alexander Makarov
9923888637 More Model tests 2013-03-29 03:22:50 +04:00
Alexander Makarov
a72d2f536a Some tests for Model 2013-03-29 02:50:36 +04:00
Qiang Xue
1fbf81be57 User WIP. 2013-03-28 17:43:27 -04:00
Carsten Brandt
8e74add1e7 Redis connection implementation 2013-03-28 15:57:05 +01:00