PHPUnit and autoloaders: Determining whether code is running in test-scope?

HTML Purifier has its autoloading code placed in a file distinct from HTMLPurifier.auto. Php; namely HTMLPurifier_Bootstrap. It has two methods: autoload, which actually performs an autoload, as well as getPath, which doesn't include a file put tells you where the file would be.

This file is explicitly designed to stand alone.

Well, although you are right about similarity (if not identity) requirement between production and test environments - I still have the configuration somewhat different. I mean bootstrapping loads different sections from application. Ini, and as such I can simply pass the flag to turn sth on/off (like that autoloader feature).

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions