On Thu, 2010-10-28 at 11:49 +0300, Vlad Dragu wrote:
> I continued to work on the unit tests. I got the user class and the 
> game_session class out of the way. They were the biggest classes and
> it should go much easier from here.

Cool! : )

> One thing that's a bit of  a problem for me is that although i can
> test  the classes pretty easy, i cannot really test the files that
> instantiate the classes in the code. For example someone does a hack,
> i have an ajax call to a file that instantiates the classes and
> launches the hack action. That file i cannot really cover with tests.
> I'll have to see about this tomorrow 

I haven't read much of that part of the code, do you mean that it's
calling php files that execute non-encapsulated code (outside of any
function or class)? I can have a look if you want.

Thanks Vlad,

Xavier.

_______________________________________________
Farsides mailing list - [email protected]

Wiki:  http://farsides.com/
List:  http://farsides.com/ml/
Forum: http://farsides.com/forum/
Ideas: http://farsides.com/ideas/
Chat:  http://farsides.com/chat/

Reply via email to