/** * Announces the end of a test. * * @param string $method Test method just finished. * @return void * @access public */ function after($method) { $isTestMethod = !in_array(strtolower($method), array('start', 'end')); if (isset($this->_fixtures) && isset($this->db) && $isTestMethod) { foreach ($this->_fixtures as $fixture) { $fixture->truncate($this->db); } $this->__truncated = true; } else { $this->__truncated = false; } if (!in_array(strtolower($method), $this->methods)) { $this->endTest($method); } $this->_should_skip = false; parent::after($method); }