mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2025-12-04 21:56:46 +01:00
Fix tests on older ZSH versions
This commit is contained in:
parent
4b32b2c0b2
commit
16e5e14af7
23 changed files with 227 additions and 132 deletions
|
|
@ -12,7 +12,8 @@ function setUp() {
|
|||
}
|
||||
|
||||
function testPhpVersionSegmentPrintsNothingIfPhpIsNotAvailable() {
|
||||
local POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(php_version custom_world)
|
||||
local -a POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(php_version custom_world)
|
||||
local POWERLEVEL9K_CUSTOM_WORLD='echo world'
|
||||
alias php="nophp"
|
||||
|
||||
|
|
@ -22,7 +23,8 @@ function testPhpVersionSegmentPrintsNothingIfPhpIsNotAvailable() {
|
|||
}
|
||||
|
||||
function testPhpVersionSegmentWorks() {
|
||||
local POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(php_version)
|
||||
local -a POWERLEVEL9K_LEFT_PROMPT_ELEMENTS
|
||||
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(php_version)
|
||||
alias php="echo 'PHP 5.6.27 (cli) (built: Oct 23 2016 11:47:58)
|
||||
Copyright (c) 1997-2016 The PHP Group
|
||||
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue