toBeFalse(); })->with([ 'unix' => ['../etc'], 'win drive backslash' => ['C:..\\rra'], 'win drive slash' => ['C:../rra'], 'nested' => ['a/../b'], ]); test('is_valid_pathname accepts benign names containing dots', function (string $path) { expect(is_valid_pathname($path))->toBeTrue(); })->with([ 'double dot suffix' => ['file..bak'], 'double dot middle' => ['a..b'], 'rrd file' => ['/var/lib/rrd/host.rrd'], ]);