octicon-git-branch(16/) Commit Graph

89 Commits

Author SHA1 Message Date
Klimov Paul
a5480de852 Test case "FileHelperTest::testGetMimeTypeByExtension()" has been added. 2013-06-10 22:22:44 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
8f7a783757 Method "yii\helpers\base\FileHelper::mkdir()" has been added. 2013-06-10 22:15:03 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
f416a36648 "FileHelperTest" has been advanced. 2013-06-10 22:07:19 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
539864f435 "FileHelperTest" has been refactored. 2013-06-10 21:33:53 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
dfda6663f6 Method "yii\helpers\base\FileHelper::findFiles()" has been added. 2013-06-10 20:57:17 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
ef60ec56a3 Method "yii\helpers\base\FileHelper::removeDirectory()" has been added. 2013-06-10 20:28:26 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Klimov Paul
e2f7b99f16 Unit test for "yii\helpers\base\FileHelper" has been created. 2013-06-10 20:22:34 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
0a9fffba8f fixed test break. 2013-06-06 07:39:35 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
89ea3fef03 Next iteration on console commands
issue #33
- implemted getScreenSize for linux systems
- tiny adjustments and better naming for console color methods
- color switch in base Controller changed to magic property
- colorized Help command
2013-05-25 04:21:51 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
7cd9123c3b Tests cleanup
- Better names
- Removed not used MySQLTestCase
- Moved base testcase for DB to db namespace
- Minor style fixes
2013-05-24 18:35:00 +04:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
291f3b35d0 Refactored Inflector. 2013-05-22 18:20:56 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
dc8dbdc64a fixed tests 2013-05-22 11:04:08 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
05523640f2 fixed pluralize + singularize rules for tests 2013-05-22 10:59:09 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
7b98b42418 added inflection methods from StringHelper + some comment fixes 2013-05-22 08:35:03 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
641e6ee7cf ported inflection methods from StringHelper to Inflector helper class 2013-05-22 08:34:17 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
f9222a083a fix failing test 2013-05-21 08:42:38 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
3575b99650 finished all tests 2013-05-21 08:22:20 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
82a6281c65 added tests 2013-05-21 01:04:28 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
slavcopost
59cb5d1199 Add unit test 2013-05-15 15:59:47 +03:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
cb8f5d702f cleanup tests 2013-05-11 12:51:24 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Carsten Brandt
e0ad712527 Merge pull request #204 branch 'unittest-app-dependency' of https://github.com/bwoester/yii2 into bwoester-unittest-app-dependency
* 'unittest-app-dependency' of https://github.com/bwoester/yii2:
  mod: incorporate suggestions - rename requireApp() to mockApplication() - always destroy app on tearDown()   - eliminates need for constant YII_DESTROY_APP_ON_TEARDOWN   - mockApplication() becomes a lot easier. Destroying app on each tearDown     means creating it on every call is fine. No more checking if it already     exists and if it has been created from the same config. - \yii::$app should have been \Yii::$app
  add: new key for unit tests config named "className". Allows to run the tests      using different Application instances (consoleApp/ webApp) mod: TestCase::getParam accepts second param $default=null
  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
  allow unit tests to requireApp() on setUp()

Conflicts:
	tests/unit/data/config.php
2013-05-11 12:22:49 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
resurtm
5575f53657 CS fixes. 2013-05-11 15:38:07 +06:00 octicon-file-diff(16/) octicon-file-code(16/)
Benjamin Wöster
f23a677bdf mod: incorporate suggestions
- rename requireApp() to mockApplication()
- always destroy app on tearDown()
  - eliminates need for constant YII_DESTROY_APP_ON_TEARDOWN
  - mockApplication() becomes a lot easier. Destroying app on each tearDown
    means creating it on every call is fine. No more checking if it already
    exists and if it has been created from the same config.
- \yii::$app should have been \Yii::$app
2013-05-10 02:01:08 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Benjamin Wöster
d4b30e26c2 allow unit tests to requireApp() on setUp() 2013-05-09 20:41:57 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
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 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
5da62fab3a #196 refactored method name 2013-05-09 18:23:10 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
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 octicon-file-diff(16/) octicon-file-code(16/)
Antonio Ramirez
e2a57e4b88 Enhance ArrayHelper with popValue method 2013-05-09 12:42:50 +02:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
dd5969147d move JsExpression to web. 2013-05-07 07:39:24 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
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 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
6e779e02d6 Fixed issue #7: ArrayHelper::multisort is not compatible with PHP 5.3 2013-05-04 21:24:00 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
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 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
53a7b82672 Renamed JsonExpression to JsExpression. 2013-05-01 14:46:24 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
5fd27b7cbb Added Json and JsonExpression. 2013-05-01 14:18:23 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
a4b7d493b0 Removed the $value parameter from radio and checkbox. 2013-04-27 22:03:14 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
399a53cfc4 activeform wip 2013-04-27 16:51:05 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
08be696434 fixed Html test under Windows (line endings) 2013-04-23 14:32:54 +04:00 octicon-file-diff(16/) octicon-file-code(16/)
Qiang Xue
122bd231b4 modified Application constructor signature. 2013-04-09 22:43:04 -04:00 octicon-file-diff(16/) octicon-file-code(16/)
Alexander Makarov
9da81894be moved helper test from util namespace to helpers namespace, added tests for StringHelper 2013-03-29 18:23:50 +04:00 octicon-file-diff(16/) octicon-file-code(16/)