lithium\tests\integration\data\DatabaseTest::skip PHP Method

skip() public method

Skip the test if no allowed database connection available.
public skip ( )
    public function skip()
    {
        parent::connect($this->_connection);
        if (!class_exists('li3_fixtures\\test\\Fixtures')) {
            $this->skipIf(true, 'Need `li3_fixtures` to run tests.');
        }
        $this->skipIf(!$this->with(array('MySql', 'PostgreSql', 'Sqlite3')));
        $this->_export = Libraries::path('lithium\\tests\\fixture\\model\\gallery\\export', array('dirs' => true));
    }