yiisoft/yii — pull request #1332 by resurtm (2012-09-04 16:38:29+00:00)
Title: Oracle unit tests—initial version.

Tested with Oracle 11g XE and PHP 5.4.3.

Travis-CI tests for Oracle disabled—they're not supported yet.

More or less working tests, covers most of the functionality associated with Oracle RDBMS.

Tests running result (`phpunit --verbose --coverage-text framework/db/schema/COciTest.php` command used):

```
PHPUnit 3.6.10 by Sebastian Bergmann.

Configuration read from C:\_work\jetbrains\yii\tests\phpunit.xml

......

Time: 7 seconds, Memory: 5.25Mb

OK (6 tests, 122 assertions)

Generating textual code coverage report, this may take a moment.

Code Coverage Report
2012-09-04 22:37:19

Summary:
Classes: 15.38% (4/26)
Methods: 11.59% (56/483)
Lines: 21.62% (654/3025)

@system.base::CComponent
Methods: 8.33% ( 2/24) Lines: 3.19% ( 6/188)
@system.db.schema.oci::COciColumnSchema
Methods: 100.00% ( 3/ 3) Lines: 100.00% ( 17/ 17)
@system.db.schema.oci::COciCommandBuilder
Methods: 100.00% ( 3/ 3) Lines: 92.00% ( 46/ 50)
@system.db.schema.oci::COciSchema
Methods: 73.33% (11/15) Lines: 81.13% ( 86/106)
@system.db.schema::CDbColumnSchema
Methods: 80.00% ( 4/ 5) Lines: 74.29% ( 26/ 35)
@system.db.schema::CDbCommandBuilder
Methods: 76.92% (20/26) Lines: 67.44% (234/347)
@system.db.schema::CDbCriteria
Methods: 9.09% ( 1/11) Lines: 1.33% ( 3/226)
@system.db.schema::CDbExpression
Methods: 50.00% ( 1/ 2) Lines: 75.00% ( 3/ 4)
@system.db.schema::CDbSchema
Methods: 30.00% ( 9/30) Lines: 24.67% ( 37/150)
@system.db.schema::CDbTableSchema
Methods: 100.00% ( 2/ 2) Lines: 100.00% ( 2/ 2)
@system.db::CDbCommand
Methods: 18.67% (14/75) Lines: 20.20% ( 82/406)
@system.db::CDbConnection
Methods: 26.19% (11/42) Lines: 43.26% ( 61/141)
@system.db::CDbDataReader
Methods: 11.11% ( 2/18) Lines: 10.81% ( 4/ 37)
@system.logging::CLogger
Methods: 9.09% ( 1/11) Lines: 5.32% ( 5/ 94)
@system::YiiBase
Methods: 23.81% ( 5/21) Lines: 19.52% ( 41/210)
```