Functional tests using PHPUnit and modular application

322 views
Skip to first unread message

Piotr Deszyński

unread,
Mar 6, 2013, 2:06:03 AM3/6/13
to pha...@googlegroups.com
Hello,

I have problem with functional tests using PHPUnit and modular application. I was looking inside the test case provided from Phalcon: https://github.com/phalcon/cphalcon/blob/master/php-tests/library/Phalcon/Test/FunctionalTestCase.php

Everything seems to work really fine until the application is modular, then only possibility that I was able to find is to run test in process isolation. In other case I'm getting error that class X was already defined. I'm using Phalon\Mvc\Application. Did anybody had similar problem?

Best regards

Nikolaos Dimopoulos

unread,
Mar 6, 2013, 5:11:05 PM3/6/13
to pha...@googlegroups.com
Hello Piotr,

This is most likely because when I wrote those tests I didn't take into account multi module applications.

I am in the process of restructuring that test suite to correct the problem you are facing.

Thanks

The contents of this message may contain confidential or privileged information and is intended solely for the recipient(s). Use or distribution to and by any other party is not authorized. If you are not the intended recipient, copying, distribution or use of the contents of this information is prohibited.


--
You received this message because you are subscribed to the Google Groups "Phalcon PHP Framework" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phalcon+u...@googlegroups.com.
To post to this group, send email to pha...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/phalcon/-/0C2Vfi9VrGgJ.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Piotr Deszyński

unread,
Mar 7, 2013, 4:44:04 AM3/7/13
to pha...@googlegroups.com
Great to hear about it. PHPUnit is awfully slow with process isolation. Is it at all possible now to do a functional test in modular app? Could you give some advice maybe how to make it working without process isolation?

Best regards

Nikolaos Dimopoulos

unread,
Mar 7, 2013, 4:29:39 PM3/7/13
to pha...@googlegroups.com
I am working on them now. I need to set up three apps for them, Micro, Single and Multimodule app. Once I have them working I will update this post. 

I am aiming to have something for you by the end of the week.

Nikos
Reply all
Reply to author
Forward
0 new messages