She said pill testing could not guarantee the drug would not kill someone even if it was pure MDMA.

Responding to the summer spate of five deaths in as many months at music festivals, Ms Faehrmann, 48, said young people wanted politicians to "get real" about illegal drugs and to accept evidence that treating illegal drugs as a health issue, not a criminal one, worked.

She told The Daily Telegraph people were "shaking their heads" after hearing the Premier say she has never taken drugs "asking what planet is she living on".

Ms Faehrmann said there was only one occasion where she was worried about having an overdose and refused to reveal details about her dealer.

"I've been very sensible and am always around friends and not doing several pills at once and not drinking alcohol and drinking the right quantity but I just know that because it is passed down from older friends," she said.

Senior NSW minister Andrew Constance slammed Ms Faehrmann for claiming "it's all right for her to take an ecstasy tablet".

The Transport Minister said: "The hard, cold reality is there is no evidence that pill testing will reduce the level of overdoses. The Greens MP today has been grossly irresponsible with her words, because she needs to understand that every person is different and when they take ecstasy, people die."