brew install php70
git clone -b NON_BLOCKING_IO_php7 https://github.com/websupport-sk/pecl-memcache.git
cd pecl-memcache
phpize
./configure
make && make install| # parses out the current branch you're on. See: http://www.harukizaemon.com/2008/05/deploying-branches-with-capistrano.html | |
| current_branch = `git branch`.match(/\* (\S+)\s/m)[1] | |
| # use the branch specified as a param, then use the current branch. If all fails use master branch | |
| set :branch, ENV['branch'] || current_branch || "master" # you can use the 'branch' parameter on deployment to specify the branch you wish to deploy |
| A comparison of Collection+JSON, HAL, JSON-LD and SIREN media types. | |
| Discussion at | |
| http://sookocheff.com/posts/2014-03-11-on-choosing-a-hypermedia-format/ |
We Gophers, love table-driven-tests, it makes our unittesting structured, and makes it easy to add different test cases with ease.
Let’s create our table driven test, for convenience, I chose to use t.Log as the test function.
Notice that we don't have any assertion in this test, it is not needed to for the demonstration.
func TestTLog(t *testing.T) {
t.Parallel()