Dear,
I've problems running the testsuite for Shindig php. The snippet below
illustrates the encountered problem.
Apparently, the problem is caused by FilesServletTest.
-------------------------------------------------------------------------------------------------------------------
developer@DragonDevMachine:/media/Datadisk/shindig$ phpunit --verbose
ShindigAllTests ./test/ShindigAllTests.php
PHPUnit 3.4.13 by Sebastian Bergmann.
Shindig
BasicBlobCrypterTest
....
BasicRemoteContentTest
.EEEEEEEEE
............... Took out some tests results here, basically all
ok.........................
ExpressionParserTest
...
FilesServletTest
.<html><body><h1>400 - Bad
Request</h1></body></html>developer@DragonDevMachine:/media/Datadisk/shindig$
-------------------------------------------------------------------------------------------------------------------
I traced the error down to the call "$servlet->doGet();" in the following
function (file test/gadgets/FilesServletTest.php):
-------------------------------------------------------------------------------------------------------------------
public function testContentHtml() {
$servlet = new MockContentFilesServlet();
$servlet->uri = 'container/rpc_relay.html';
ob_start();
$servlet->doGet();
$servletContent = ob_get_contents();
ob_end_clean();
$fileContent = file_get_contents(Config::get('javascript_path') .
$servlet->uri);
$this->assertEquals($fileContent, $servletContent);
}
-------------------------------------------------------------------------------------------------------------------
This is an expected result, since "container/rpc_relay.html" indeed doesn't
exist on my localhost. If I'm not mistaking, the file has to do with
cross-domain gadget security.
If tried adding a try catch block in the testContentHtml() function, but to no
avail. Should this file be added (I'm running virtualhosts with apache, and
expected caja to handle all gadget js security).
I'd like to request some guidance for this.
Ps: I'm also wondering if I'm executing the testsuite correctly, and how to
execute only REST tests.
Ps2: If you believe this should have been posted in the Shindig users forum, I
thought about it but though differently... not hesitate to correct me ;)
Thank you in advance, Best regards,
Paul