#204 Problème de parsing dans la version 1.1alpha2

open
5
2011-05-15
2011-05-15
Nicolas
No

Dans la configuration de Run de type SimpleTest avec Eclipse, on renseigne le champ "Test File". Dans mon cas j'ai saisi : http://localhost/testPhp/tests/Test.php

Lors du run, la console me renvoi :

echo "<?php
$path='/home/nvergnes/SimpleTestPhp';
ini_set('include_path', get_include_path().PATH_SEPARATOR . realpath($path));
ini_set('html_errors','0');
$fullpath = realpath('http::/localhost/testPhp/tests/Test.php');
$pathparts = pathinfo($fullpath);
$filename = $pathparts['basename'];
include_once('xml.php');
include_once('unit_tester.php');
include_once('mock_objects.php');
include_once('test_case.php');
include_once('invoker.php');
$test=new GroupTest($filename);
$test->addTestFile($fullpath);
$test->run(new XmlReporter());
?>" | "/usr/bin/php" -q -c "/etc/php5/apache2/php.ini"

Il semble y avoir un problème de parsing sur $fullpath. 2 captures d'écran permettent d'illustrer le problème.

Discussion

  • Nicolas

    Nicolas - 2011-05-15

    Probleme de parsing

     
  • Steven Balthazor

    The problem appears to be how the plugin is detecting the location of the file under test (Test.php) - it appears to believe that this file is located at http::/localhost/testPhp/tests/Test.php. I am not sure how it would ever determine that to be the location of the file (that is an invalid url - it should be http:// not http::/). I am not sure how you are editing a file from an http;// location, but the eclipse plugin does not support this - please try again with a file located on the local filesystem.

     

Log in to post a comment.