History log of /plugin/farmer/_test/core.test.php (Results 1 – 4 of 4)
Revision Date Author Comments
# 83ef0d71 28-Jul-2025 Andreas Gohr <gohr@cosmocode.de>

test: add comprehensive tests for animal detection #87

Adds a full test suite for the refactored animal detection logic.
This includes a data provider with various scenarios for web and CLI
environm

test: add comprehensive tests for animal detection #87

Adds a full test suite for the refactored animal detection logic.
This includes a data provider with various scenarios for web and CLI
environments.

A new test for injectServerEnvironment ensures that base URLs are
correctly constructed from CLI parameters.

show more ...


# 5b5c8486 05-Apr-2023 Andreas Gohr <andi@splitbrain.org>

fixed tests


# bfecda9b 19-Apr-2016 Andreas Gohr <gohr@cosmocode.de>

explicitly sort by alphabet when hostname length is same

Should fix tests


# 85becf1b 14-Apr-2016 Andreas Gohr <gohr@cosmocode.de>

adjusted the host detection code

We no longer support subdirectories for the domain based setup. This is
in line with simplifying the whole thing.

Instead we check for matching animals from back an

adjusted the host detection code

We no longer support subdirectories for the domain based setup. This is
in line with simplifying the whole thing.

Instead we check for matching animals from back and without the hostname.

For a host header www.foobar.example.com:8000 the following animals would
match:

www.foobar.example.com.8000
foobar.example.com.8000
www.foobar.example.com
www.foobar.example
foobar.example.com
foobar.example
www.foobar
foobar
www

show more ...