the getDataSet() method is called once before each test and fills data for ALL
models, i.e. you have to add all the relevant to data to this file that you
need.
The PHPUnit documentation has an example how such an XML file might look like,
see Example 9.2
http://www.phpunit.de/manual/current/en/database.html
greetings,
Benjamin
On Monday 02 November 2009 08:19:19 am huajun qi wrote:
> I want to test my models, and some of them are related!
>
> I wrote the dataseed xml file, but had no idea how to use it.
>
> I initialize the data in one xml file, need I to return it in getDataSet
> method every model classes?
>
> If I can initialize data once, where to use getDataSet method among many
> model calsses?
--
Benjamin Eberlei
http://www.beberlei.de
没有评论:
发表评论