mirror of
https://github.com/IlanCosman/tide.git
synced 2024-09-11 17:15:34 +03:00
22 lines
374 B
Fish
22 lines
374 B
Fish
# RUN: %fish %s
|
|
_tide_parent_dirs
|
|
|
|
function _php
|
|
_tide_decolor (_tide_item_php)
|
|
end
|
|
|
|
set -l phpDir (mktemp -d)
|
|
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
|