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
12 years ago
Benjamin Wöster
c30ee60e9c
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
12 years ago
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
12 years ago
Benjamin Wöster
d4b30e26c2
allow unit tests to requireApp() on setUp()
12 years ago
Alexander Makarov
8332e8c60f
Updated framework paths in composer.json
12 years ago
Qiang Xue
0d814fa523
Moved "framework" to "iii".
12 years ago
Qiang Xue
15e1a79952
Merge branch 'master' of https://github.com/yiisoft/yii2
12 years ago
Qiang Xue
b68bd8ef63
Fixed Yii::importNamespaces() bug.
12 years ago
Qiang Xue
599debc2b9
Merge pull request #195 from suralc/trait-autoload
...
Check if trait was loaded
12 years ago
Qiang Xue
8520be08de
Fixes issue #174 : make URL parameters available in $_GET.
12 years ago
Qiang Xue
aad6d7d992
refactoring.
12 years ago
Suralc
882a611666
Removed static variable from autoload per qiangxue's suggestion
12 years ago
Carsten Brandt
2387e59c4e
Renamed yii.php -> Yii.php for class, filename consitency
...
See https://github.com/yiisoft/yii2/issues/123#issuecomment-17657374
Issue #123
12 years ago
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
12 years ago
Carsten Brandt
849740e6cc
Fixed YiiBaseTest echo
...
it echoed Yii version which is not necessary
12 years ago
Alexander Makarov
ad26b7d3d1
Use Composer autoload to handle dependency class loading
12 years ago
Suralc
bac5c0e729
Check if trait was loaded
12 years ago
Carsten Brandt
a51019bbed
Console helper: use self:: for refering to constants
12 years ago
Qiang Xue
0f33f90161
Merge branch 'master' of https://github.com/yiisoft/yii2
12 years ago
Qiang Xue
c7e40f5c7a
Debug toolbar WIP.
12 years ago
Carsten Brandt
a61ec6bdd5
Merge pull request #186 from suralc/console-static-fix
...
[Please Review before merge] Fixed static in signature error
12 years ago
Qiang Xue
28045b121f
Merge pull request #189 from Dev-Speranza/master
...
Fix $schemaMap declaration for Mssql driver
12 years ago
Dev-Speranza
6ed419849e
Fix $schemaMap declaration for Mssql driver
12 years ago
Qiang Xue
b836665dfd
Added beginPage and endPage events.
12 years ago
Qiang Xue
6b770dad6e
Merge branch 'master' of https://github.com/yiisoft/yii2
12 years ago
Qiang Xue
96fd37de2e
Fixes issue #49 : finished CAPTCHA feature.
12 years ago
Suralc
8197ab556e
Revert static calls in switch
12 years ago
Suralc
ded4ccd778
Fixed php 5.4+ Exception in Console helper
12 years ago
Qiang Xue
11bebaa8bf
Merge pull request #184 from andersonamuller/patch-1
...
Typo in isNewRecord property of ActiveRecord
12 years ago
Qiang Xue
63f081f2f3
Merge pull request #185 from andersonamuller/patch-2
...
Fixes doc block in findWith method of ActiveRelation
12 years ago
Anderson Müller
78b6607c11
Fixes doc block in findWith method of ActiveRelation
12 years ago
Anderson Müller
45e987d26c
Typo in isNewRecord property of ActiveRecord
12 years ago
Qiang Xue
b8b6180b81
Merge pull request #183 from LAV45/master
...
Fix urlManager
12 years ago
Qiang Xue
c5bad9ea1b
Fixes issue #172 : Added Object::className().
12 years ago
Qiang Xue
2dd51d5b46
Fixes issue #177 .
12 years ago
Qiang Xue
01ae015088
Fixes issue #180 : DbSession crashes with autoStart
12 years ago
Carsten Brandt
51357e58f0
more console helper and controller refactoring
...
changed name of ansi switch to --colors
69cad905dd (commitcomment-3168489)
issue #33
12 years ago
Carsten Brandt
fc5045fd0c
Fixed Copy paste error console/Controller
...
also naming of formatString -> ansiFormat
12 years ago
Carsten Brandt
ed74636af8
more doc variable name fixes
12 years ago
Carsten Brandt
88c74e99c3
variable name fix in docs of Markdown helper
...
f2258e760f (commitcomment-3165819)
12 years ago
Carsten Brandt
69cad905dd
Refactoring Console commands
...
added method wrappers in console/Controller
issue #33
12 years ago
Qiang Xue
55cc8813c7
Fixes issue #171
12 years ago
Carsten Brandt
563243a415
Merge branch 'master' of github.com:yiisoft/yii2
...
* 'master' of github.com:yiisoft/yii2:
Corrected default paths for Twig and Smarty
12 years ago
Alexander Makarov
74185cb7fc
Corrected default paths for Twig and Smarty
12 years ago
Carsten Brandt
6faf8344a9
Spaces -> Tabs
12 years ago
Carsten Brandt
7e0d35c308
Merge pull request #144 from tonydspaniard/master
...
Proposed refactor of ConsoleColor to Console
12 years ago
Alexander Makarov
92ec41cc7b
Moved Composer vendor dir into framework
12 years ago
Alexander Makarov
f2258e760f
Added Purifier and Markdown helpers, added composer.lock
12 years ago
Qiang Xue
17807874b6
Fixes issue #53 : implemented Menu.
12 years ago
Qiang Xue
b703169d4b
Merge pull request #163 from creocoder/array-to-empty
...
=== array() => empty() && !== array() => !empty()
12 years ago