3 * base include file for eclipse plugin
7 include_once "xml.php";
8 include_once "invoker.php";
9 include_once "socket.php";
10 class EclipseReporter
extends XmlReporter
{
12 function EclipseReporter($port){
17 function &createInvoker(&$invoker){
18 $eclinvoker = &new EclipseInvoker($invoker, $this->_port
);
22 function paintMethodStart($method) {
23 parent
::paintGroupStart($this->_group
, $this->_size
);
24 parent
::paintCaseStart($this->_case
);
25 parent
::paintMethodStart($method);
28 function paintMethodEnd($method){
29 parent
::paintMethodEnd($method);
30 parent
::paintCaseEnd($this->_case
);
31 parent
::paintGroupEnd($this->_group
);
35 function paintCaseStart($case){
39 function paintCaseEnd($case){
42 function paintGroupStart($group,$size){
43 $this->_group
= $group;
45 function paintGroupEnd($group){
50 class EclipseInvoker
extends SimpleInvokerDecorator
{
52 function EclipseInvoker(&$invoker,$port) {
54 $this->SimpleInvokerDecorator($invoker);
57 function invoke($method) {
59 parent
::invoke($method);
60 $output = ob_get_contents();
63 $sock = new SimpleSocket("127.0.0.1",$this->_port
,5);
64 $sock->write($output);
66 echo $sock->getError();