Hi Henri,

Thanks for your answer ... 

Our application is an internal application used by thousands of users to manage 
client environments ... It's a kind of placeholder to share client environment 
knowledge (data, documents, contacts, ...) with some more functionalities 
(read/write access, wiki, ...). It's now an 8 years old application that really 
help people to collaborate to solve/manage our clients...

I come back to my problem. 
We are using midgard-core-1.8.9.2-1.x86_64.rpm ... I must admit I'm new to this 
project and don't master everything yet ...
The problem I saw when trying to put in place PHPUnit is due to Midgard Page 
construction ... In fact, from what I understand, Midgard allows to build a 
page by replacing references to other elements by their contents 
(http://www.midgard-project.org/documentation/concepts-page_and_style/) ... 
Because PHPUnit directly call a given element, for sure we will miss references 
to other elements ...

What you're pointed to me seems more PHPUnit of MidCOM itself but not PHPUnit 
of an application using Midgard ...
We really wonder how to do ? ... What's the right approach ? ... and definitely 
need some help, some guidance on this topic ... so we really appreciate if you 
could help us ?

Regards
Pierre-Marie


-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
Henri Bergius
Sent: Wednesday, June 16, 2010 4:29 PM
To: Midgard user list
Cc: Bouteille, Pierre-marie
Subject: Re: [midgard-user] Midgard and PhPUnit

Hi!

On Wed, Jun 16, 2010 at 1:17 PM, Bouteille, Pierre-marie
<[email protected]> wrote:
> We need to use PHPUnit to perform unit test of our application that is using
> Midgard.
>
> Basically we are facing problem due to file inclusion ... Midgard manages
> inclusion through midgard-root.php but when using PHPUnit we directly call
> method ...

I assume the application is using Midgard1 (versions up until Midgard
8.09 "Ragnaroek"). In Midgard2 we have a PHPunit test environment
bundled with the system, but with Midgard1 it is unfortunately a bit
trickier.

Tarjei Huse was working on a unit testing environment for MidCOM in
http://trac.midgard-project.org/browser/branches/thor/midcom/midcom.tests.base
which might be possible to bring back to life.

BTW, would be interesting to hear a bit more about your Midgard application :-)

> Pierre-Marie

/Henri

-- 
Henri Bergius
Motorcycle Adventures and Free Software
http://bergie.iki.fi/

Skype: henribergius
Jabber: [email protected]
Microblog: http://www.qaiku.com/home/bergie/
_______________________________________________
user mailing list
[email protected]
http://lists.midgard-project.org/mailman/listinfo/user

Reply via email to