github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/scriptpack/php/test/install.bats (about) 1 #!/usr/bin/env bats 2 3 # Load the main library 4 . ${SCRIPTPACK_PHP_ROOT}/main.sh 5 6 @test "install from string '5.5'" { 7 php_install "5.5" 8 php --version 9 [[ $(php --version) =~ 'PHP 5.5.' ]] 10 } 11 12 @test "install from string '5.6'" { 13 php_install "5.6" 14 php --version 15 [[ $(php --version) =~ 'PHP 5.6.' ]] 16 } 17 18 @test "install from string '7.0'" { 19 php_install "7.0" 20 php --version 21 [[ $(php --version) =~ 'PHP 7.0.' ]] 22 }