Skip to content

Instantly share code, notes, and snippets.

@dmasior
dmasior / zshrc
Last active May 5, 2020 13:54
use composer from docker
# Add to .zshrc or .bashrc:
function composer() {
docker run --rm --interactive --tty \
--volume $PWD:/app \
--volume ${COMPOSER_HOME:-$HOME/.composer}:/tmp \
--user $(id -u):$(id -g) \
composer "$@"
}
<?php
$I->amOnPage('/login');
$I->fillField('username', 'davert');
$I->fillField('password', 'qwerty');
$I->click('LOGIN');
$I->see('Welcome, Davert!');