Possible Duplicate:
Best practices to test protected methods with PHPUnit
class Footer
{
  private $_isEnabled;
  public function __construct(){
    $this->_isEnabled = true;
  }
  public function disable(){
    $this->_isEnabled = false;
  }  
}
When I am writing a unit test for the disable function after I set _isEanabled to false, I want to assert whether or not it is false.
But how can I access $_isEnabled?
This is my test function:
public function testDisable(){
  $footer = new Footer();
  $footer->disable();
  $this->assertFalse($footer->_isEnable);
}
 
     
     
     
    