Hi all,
Additional info.
After looking into the YiiCore TDD code, i locate the file that stop phpunit (executing all TDD at once or only located file) :
phpunit --verbose ./framework/db/ar/CActiveRecordTest.php
phpunit return these errors :
1) CActiveRecordTest::testValidation
CException: Property "CHasManyRelation.scopes" is not defined.
MYPATH/yii-1.1.8.r3324/framework/base/CComponent.php:174
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1946
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:2322
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:2303
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:372
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:387
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:62
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:255
2) CActiveRecordTest::testLazyRelation
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:258
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:127
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:329
3) CActiveRecordTest::testEagerRelation2
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1426
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:415
4) CActiveRecordTest::testEagerRelation
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1426
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:455
5) CActiveRecordTest::testLazyRecursiveRelation
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:295
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:258
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:127
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:476
6) CActiveRecordTest::testEagerRecursiveRelation
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1426
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:497
7) CActiveRecordTest::testRelationWithCondition
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1396
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:524
<img src='http://www.yiiframework.com/forum/public/style_emoticons/default/cool.gif' class='bbc_emoticon' alt='8)' /> CActiveRecordTest::testRelationWithColumnAlias
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:399
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:50
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1410
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:552
9) CActiveRecordTest::testRelationWithNewRecord
Trying to get property of non-object
[color="#FF0000"]MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:62[/color]
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:572
10) CActiveRecordTest::testRelationWithDynamicCondition
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:583
11) CActiveRecordTest::testEagerTogetherRelation
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1426
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:595
12) CActiveRecordTest::testRelationalCount
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1543
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:642
13) CActiveRecordTest::testRelationalStat
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:399
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:50
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1410
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:657
14) CActiveRecordTest::testLazyLoadingWithConditions
Trying to get property of non-object
MYPATH/[color="#FF0000"]yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:709
15) CActiveRecordTest::testDuplicateLazyLoadingBug
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:720
16) CActiveRecordTest::testTogetherWithOption
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:399
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:50
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1410
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:771
17) CActiveRecordTest::testScopes
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:393
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:286
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:304
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:51
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1410
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:855
18) CActiveRecordTest::testScopeWithRelations
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:910
19) CActiveRecordTest::testJoinWithoutSelect
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:399
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:50
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1410
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:1049
20) CActiveRecordTest::testHasManyThroughEager
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:1068
21) CActiveRecordTest::testHasManyThroughLazy
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:1278
22) CActiveRecordTest::testMergingWith
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:399
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveFinder.php:50
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1294
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1410
MYPATH/yii-1.1.8.r3324/test/framework/db/ar/CActiveRecordTest.php:1343
Then I decide to mark theses test as skipped modified setUp() method and trying to run all YiiCore TDD at once. Once again it fails.
Other issues on another file (this time it’s just an assertion that fails) :
phpunit --verbose ./framework/db/schema/CSqliteTest.php
And returned logs :
PHPUnit 3.5.15 by Sebastian Bergmann.
....F.
Time: 0 seconds, Memory: 9.75Mb
There was 1 failure:
1) CSqliteTest::testResetSequence
Failed asserting that <string:1> matches expected <integer:5>.
[color="#FF0000"]MYPATH/yii-1.1.8.r3324/test/framework/db/schema/CSqliteTest.php:230[/color]
Then i’m continuing parsing YiiCore TDD tests and found another issue :
phpunit --verbose ./framework/web/
Logs returned :
PHPUnit 3.5.15 by Sebastian Bergmann.
SSSSSSSSSSSSSSSSS.........................E.......EE...
Time: 0 seconds, Memory: 16.75Mb
There were 3 errors:
1) CSortTest::testGetDirectionsWithDots
[color="#FF0000"]CDbException: The table "posts" for active record class "Post" cannot be found in the database.[/color]
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:2276
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:372
MYPATH/yii-1.1.8.r3324/framework/web/CSort.php:222
MYPATH/yii-1.1.8.r3324/framework/web/CSort.php:200
MYPATH/yii-1.1.8.r3324/test/framework/web/CSortTest.php:46
2) CJSONTest::testEncodeSingleAR
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1425
MYPATH/yii-1.1.8.r3324/test/framework/web/helpers/CJSONTest.php:34
3) CJSONTest::testEncodeMultipleARs
Trying to get property of non-object
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:633
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:1441
MYPATH/yii-1.1.8.r3324/test/framework/web/helpers/CJSONTest.php:46
If you run CJSonTest.php independently, it works. I think it is due to the exception thrown by CSortTest.php
phpunit --verbose ./framework/web/CSortTest.php
Logs are more explicits :
PHPUnit 3.5.15 by Sebastian Bergmann.
E
Time: 0 seconds, Memory: 9.25Mb
There was 1 error:
1) CSortTest::testGetDirectionsWithDots
[color="#FF0000"]include(Post.php): failed to open stream: No such file or directory[/color]
MYPATH/yii-1.1.8.r3324/framework/YiiBase.php:421
MYPATH/yii-1.1.8.r3324/framework/YiiBase.php:421
MYPATH/yii-1.1.8.r3324/framework/db/ar/CActiveRecord.php:371
MYPATH/yii-1.1.8.r3324/framework/web/CSort.php:222
MYPATH/yii-1.1.8.r3324/framework/web/CSort.php:200
MYPATH/yii-1.1.8.r3324/test/framework/web/CSortTest.php:46
I’m continuing having an issue after 57% of tested TDD. I will try to find other bad files.