lib/Cuke4Php.php in cuke4php-0.9.1 vs lib/Cuke4Php.php in cuke4php-0.9.2
- old
+ new
@@ -23,11 +23,12 @@
'before' => array(),
'after' => array()
);
function __construct($_sFeaturePath, $_iPort = 16816) {
- $_sFeaturePath = dirname($_sFeaturePath);
-
+ if (is_file($_sFeaturePath)) {
+ $_sFeaturePath = dirname($_sFeaturePath);
+ }
if ($_iPort > 0) {
$this->iPort = $_iPort;
} else {
$this->iPort = 16816;
}
\ No newline at end of file