public function _after(TestInterface $test)
    {
        if (empty($this->memcache)) {
            return;
        }

        $this->memcache->flush();
        switch (get_class($this->memcache)) {
            case 'Memcache':
                $this->memcache->close();
                break;
            case 'Memcached':
                $this->memcache->quit();
                break;
        }
    }
public function _after(TestInterface $test)
    {
        if (empty($this->memcache)) {
            return;
        }

        $this->memcache->flush();
        switch (get_class($this->memcache)) {
            case 'Memcache':
                $this->memcache->close();
                break;
            case 'Memcached':
                $this->memcache->quit();
                break;
        }
    }
public function _after ( TestInterface $ test ) { if ( empty ( $ this -> memcache ) ) { return ; } $ this -> memcache -> flush ( ) ; switch ( get_class ( $ this -> memcache ) ) { case 'Memcache' : $ this -> memcache -> close ( ) ; break ; case 'Memcached' : $ this -> memcache -> quit ( ) ; break ; } }
Code to run after each test.

@param TestInterface $test
Code to run after each test .