Development

#4868 ([sfTaskExtraPlugin] Constant SYMFONY don't exist in $_SERVER)

You must first sign up to be able to contribute.

Ticket #4868 (closed defect: invalid)

Opened 1 year ago

Last modified 1 year ago

[sfTaskExtraPlugin] Constant SYMFONY don't exist in $_SERVER

Reported by: Garfield-fr Assigned to: Kris.Wallsmith
Priority: minor Milestone:
Component: plugins Version:
Keywords: sfTaskExtraPlugin Cc:
Qualification: Unreviewed

Description

In unit test, the constant SYMFONY in the array $_SERVER don't exist.

I have changed with

require_once dirname(__FILE__).'/../../../../config/ProjectConfiguration.class.php';

Attachments

sfTaskExtraPlugin.patch (1.5 kB) - added by Garfield-fr on 11/08/08 15:23:12.
sfTaskExtraPlugin_2.patch (1.7 kB) - added by Garfield-fr on 11/08/08 18:55:43.

Change History

11/08/08 15:23:12 changed by Garfield-fr

  • attachment sfTaskExtraPlugin.patch added.

11/08/08 18:55:43 changed by Garfield-fr

  • attachment sfTaskExtraPlugin_2.patch added.

11/08/08 18:56:47 changed by Garfield-fr

Apply on the second patch. I have deleted the sfCoreAutoload::register(); because this is the same on the file ProjectConfiguration?

11/08/08 18:59:45 changed by Garfield-fr

  • owner changed from fabien to Kris.Wallsmith.

11/12/08 05:01:51 changed by Piers.Warmers

I think this change should also be applied to the ProjectConfiguration? class for the fixtures project.

11/12/08 19:51:40 changed by Kris.Wallsmith

  • status changed from new to closed.
  • resolution set to invalid.

A plugin's test suite needs to use the ProjectConfiguration? from the embedded test project, not from the housing project.

The $_SERVERSYMFONY? variable can be set in a bash shell like so:

$ export SYMFONY=/path/to/symfony/lib

As far as I know this method is not compatible with Windows, unfortunately, which is a defect.

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting.
Sensio Labs also supports several large Open-Source projects.