mirror of
https://github.com/IlanCosman/tide.git
synced 2024-11-22 23:03:26 +03:00
Add php item test
This commit is contained in:
parent
d0fa97f0fa
commit
39e96090a0
21
tests/_tide_item_php.test.fish
Normal file
21
tests/_tide_item_php.test.fish
Normal file
@ -0,0 +1,21 @@
|
||||
# RUN: %fish %s
|
||||
|
||||
function _php
|
||||
_tide_decolor (_tide_item_php)
|
||||
end
|
||||
|
||||
set -l phpDir ~/phpTest
|
||||
mkdir -p $phpDir
|
||||
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
|
||||
|
||||
rm -r $phpDir
|
Loading…
Reference in New Issue
Block a user