SimpleMock::__construct PHP Méthode

__construct() public méthode

All call counts are set to zero.
public __construct ( )
    public function __construct()
    {
        $this->actions = new SimpleCallSchedule();
        $this->expectations = new SimpleCallSchedule();
        $this->call_counts = array();
        $this->expected_counts = array();
        $this->max_counts = array();
        $this->expected_args = array();
        $this->expected_args_at = array();
        $this->getCurrentTestCase()->tell($this);
    }

Usage Example

 function __construct()
 {
     parent::__construct();
 }