Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

2
  • what does $class = new ReflectionClass("Application_Model_SomeModel"); var_dump(class->getConstants()) and var_dump(FAIL); (without quotes) output when you write it in the setUp() ? Commented Apr 6, 2011 at 18:17
  • If I put what you suggested into the setUp() method, everything works as expected. Meaning that all the constants and their values of the class are printed AND the class variable FAIL is the correct string value. However, if I put var_dump( $this->_FAIL ) in the dataprovider method, right before I return the array, then a NULL value is printed for $this->_FAIL. Commented Apr 6, 2011 at 18:43