[ Index ]

PHP Cross Reference of YOURLS

title

Body

[close]

/tests/includes/ -> install.php (summary)

(no description)

File Size: 65 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 3 functions

  yut_install_yourls()
  yut_find_config()
  yut_drop_all_tables_if_local()

Functions
Functions that are not part of a class:

yut_install_yourls()   X-Ref
Install YOURLS tables

return: void

yut_find_config()   X-Ref
Find YOURLS config depending on unit test context

Unit tests can be run locally (someone typing 'phpunit' in their console) or on Travis
on YOURLS/YOURLS or YOURLS/YOURLS/YOURLS-unit-tests when pushing commits.

return: string  config file path (eg '/home/you/path/to/config.php')

yut_drop_all_tables_if_local()   X-Ref
Destroy tables in selected DB if tests run locally

If not running in Travis environment, this function will drop all tables in the selected DB

return: void



Generated: Tue Jan 21 05:10:11 2025 Cross-referenced by PHPXref 0.7.1