Yii Framework Forum: Unit Testing Model Dalam Modules - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Unit Testing Model Dalam Modules Rate Topic: -----

#1 User is offline   alienwerks 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 29-October 12

Posted 30 October 2012 - 12:34 AM

Teman teman,

Saya sedang melakukan unit testing untuk kelas model dalam modules, Ketika saya test kelas dalam folder test, semua berjalan OK, smooth.
Tapi ketika kelas model, teman saya taruh dalam modules/v1/models hasilnya jadi aneh.

1) UserTest::testCreate
Invalid argument supplied for foreach()

C:\xampp\htdocs\api_171022012\framework\test\CDbFixtureManager.php:171
C:\xampp\htdocs\api_171022012\framework\test\CDbFixtureManager.php:125
C:\xampp\htdocs\api_171022012\framework\test\CDbFixtureManager.php:88
C:\xampp\htdocs\api_171022012\framework\base\CModule.php:388
C:\xampp\htdocs\api_171022012\framework\test\CDbTestCase.php:86
C:\xampp\htdocs\api_171022012\framework\test\CDBTestCase.php:118

Failures!
dst,...

Ada ide kenapa ini terjadi?mungkin karena path?

Thanks
afikri
0

#2 User is offline   YII alvs 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 53
  • Joined: 11-February 10

Posted 16 November 2012 - 03:46 AM

pathnya salah
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users