1
0
mirror of https://github.com/laravel/valet.git synced 2026-02-04 16:10:08 +01:00
Commit Graph

34 Commits

Author SHA1 Message Date
Chris Brown
95264a6e0d Modernize PHP unit tests
Replaces and closes #564
2019-12-27 15:09:04 -05:00
Matt Stauffer
fb562977f0 Fix 7.7 typo in brew test 2019-11-30 14:21:31 -05:00
lee
b2faf6cc5a added assertions to fix test 2019-11-29 23:29:25 +01:00
James Barnard
e5e7c74f1d use formula to restart php instead of version 2019-01-29 12:29:28 -05:00
James Barnard
0bf3078220 update to unlink not the current version but the currently linked formula path (handles bug with latest version under php path) 2019-01-28 20:26:13 -05:00
James Barnard
ece3a1ff2f clean up to remove search, refactor to better handle versions using regex 2019-01-28 20:26:13 -05:00
James Barnard
6158e5129b add more tests for new methods and bits of clean up 2019-01-28 20:26:13 -05:00
James Barnard
25c4fab2b4 stop running php and search brew for php to verify can install it before trying the wrong formula, todos for tests 2019-01-28 20:26:13 -05:00
James Barnard
28748baa80 working on php version and tests 2019-01-28 20:26:13 -05:00
Chris Brown
83b1b2c467 Rework PHP version resolution
Last year's Homebrew's PHP packaging changes altered their version numbering strategy.
Now that their changes appear to have stabilized, Valet also needs some updates to match.

The `linkedPhp()` function was parsing the symlinked directory name for where the php binaries are stored, but that numbering strategy has morphed over time.

This PR changes the logic to accommodate the most common directory naming strategies I can find, including those of older installs.
I've included some examples of these names in code comments for future reference since finding a variety of them can be complicated.
2019-01-09 14:28:43 -05:00
Till Krüss
adab98dd31 test test test 2018-12-07 16:21:43 -05:00
Till Krüss
9d66cb6bbd update brew test 2018-12-07 16:21:43 -05:00
Sahib J. Leo
b05c773e1d Addressing issue #678 2018-12-05 09:00:59 -05:00
Colin DeCarlo
20afe84f36 Move the helper functions into the Valet namespace 2018-06-20 16:01:37 -04:00
Jesus Urrutia
b52ae454a2 Maintain compatibility with the old name of the PHP version 2018-04-09 11:20:19 -03:00
Jesus Urrutia
ab8705425c Fix testing for Brew class 2018-04-07 16:48:35 -03:00
Taylor Otwell
567d38eafe update tests 2018-03-02 08:26:37 -06:00
Adam Wathan
84ade711b6 Refactor to collections 2017-06-22 07:34:51 -04:00
Antonio Carlos Ribeiro
6f8c14271a Show install, start, stop and restart log info 2017-02-21 12:04:45 -03:00
Adam Wathan
e832fc73cc Fix test 2017-01-21 13:51:57 -05:00
Chris Brown
e208ca2340 Update minimum PHP requirement to 5.6
... because it's not actually compatible with 5.5 anymore - Ref: https://github.com/laravel/valet/issues/279
2016-12-27 15:58:16 -05:00
Daniel Polito
5a25224e11 Upgrading PHP to 7.1 (#227) 2016-12-14 14:14:33 -06:00
Taylor Otwell
a35b668aee working on tests 2016-12-08 08:32:55 -05:00
Adam Lavin
b2878a6d1a Update brew list to use runAsUser instead of directly sudoing 2016-11-23 21:52:56 +00:00
Adam Lavin
6aa1f4b7bf Run brew list as user
As brew no longer allows running itself as root, we need to run it at the current user. This resolves #221.
2016-11-23 16:29:27 +00:00
Chris Brown
77cd98f4cc Add basic changes to alllow php71 2016-07-28 12:36:15 -04:00
Lucas Michot
05b870b484 Use assertFileExists and assertFileNotExists (#75) 2016-05-27 10:36:40 -05:00
Taylor Otwell
6e40e195ca Fix tests. 2016-05-17 19:43:24 -07:00
Glendon Solsberry
e714082d50 Allows Valet to run under PHP 5.5 (#57)
* Allows for valet to run under PHP 5.5 as well.

Add checks for php55 to the mix.

* Allows for valet to run under PHP 5.5 as well.

Add checks for php55 to the mix.

* Update .travis.yml

* Update PhpFpm.php

* Add tests for php55
2016-05-10 21:56:25 -05:00
Taylor Otwell
677ff7ae5b change to preg replace instead of sed 2016-05-08 23:50:01 -05:00
Taylor Otwell
e25be02c69 fix tests user call 2016-05-08 23:37:01 -05:00
Taylor Otwell
5685b48f36 working on php fpm refactor 2016-05-08 16:17:25 -05:00
Taylor Otwell
5b80b4b4bc working on dnsmasq refactor 2016-05-08 16:00:00 -05:00
Taylor Otwell
354e1d4111 progress refactoring 2016-05-07 22:10:32 -05:00