tide/tests/_tide_item_php.test.fish

22 lines
374 B
Fish
Raw Normal View History

2021-02-26 01:20:20 +03:00
# RUN: %fish %s
2022-09-05 19:56:50 +03:00
_tide_parent_dirs
2021-02-26 01:20:20 +03:00
function _php
_tide_decolor (_tide_item_php)
end
set -l phpDir (mktemp -d)
2021-02-26 01:20:20 +03:00
cd $phpDir
mock php --version "echo \
'PHP 8.0.2 (cli) (built: Feb 2 2021 18:26:02) ( NTS )
Copyright (c) The PHP Group
Zend Engine v4.0.2, Copyright (c) Zend Technologies'"
_php # CHECK:
touch composer.json
_php # CHECK:  8.0.2
command rm -r $phpDir