tide/tests/_tide_item_php.test.fish
Devansh Sharma 13fa55ef10
Use command rm in tests (#336)
* Update rm to /bin/rm in tests

* Fix check regex in time item test

* Revert "Fix check regex in time item test"

This reverts commit edb871f8ba.

* Update /bin/rm to command rm in tests
2022-08-27 05:22:24 -04:00

21 lines
356 B
Fish

# RUN: %fish %s
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