Slide 89
Slide 89 text
Допустим('/^я нахожусь в директории “(.*)”$/',
function($world, $dir) {
chdir('fixtures/' . $dir);
}
);
$steps->Если('/^я исполню “(.*)”$/',
function($world, $command) {
exec($command, $output);
$world->output = trim(implode(“\n”, $output));
}
);
$steps->То('/^я должен увидеть:$/',
function($world, $string) {
assertEquals((string) $string, $world->output);
}
);
ОПРЕДЕЛЕНИЯШАГОВ