Variable: php-ts-mode-find-sibling-rules

php-ts-mode-find-sibling-rules is a customizable variable defined in php-ts-mode.el.gz.

Value

(("src/\\(.+/\\)\\([^/]+\\)\\.php" "tests/\\1\\2Test.php")
 ("tests/\\(.+/\\)\\([^/]+\\)Test\\.php" "src/\\1\\2.php"))

Documentation

Rules for finding sibling files.

See find-sibling-rules for the form of the value. As a default, the rules try to find the corresponding test of the current source file and vice versa. Source files are assumed to be in src/, and tests of in tests/. Many frameworks have a folder arrangement similar to this.

This variable was added, or its default value changed, in Emacs 31.1.

Probably introduced at or before Emacs version 31.1.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/php-ts-mode.el.gz
(defcustom php-ts-mode-find-sibling-rules
  (list (list (rx "src/" (group (+ not-newline) "/") (group (+ (not "/"))) ".php") "tests/\\1\\2Test.php")
	(list (rx "tests/" (group (+ not-newline) "/") (group (+ (not "/"))) "Test.php") "src/\\1\\2.php"))
  "Rules for finding sibling files.
See `find-sibling-rules' for the form of the value.
As a default, the rules try to find the corresponding test of the
current source file and vice versa.  Source files are assumed to be in
src/, and tests of in tests/.  Many frameworks have a folder
arrangement similar to this."
  :type '(alist :key-type (regexp :tag "Match")
		:value-type (repeat (string :tag "Expansion")))
  :tag "PHP find sibling rules"
  :version "31.1")