Home | 简体中文 | 繁体中文 | 杂文 | Search | ITEYE 博客 | OSChina 博客 | Facebook | Linkedin | 作品与服务 | Email

第 7 章 Behat

目录

7.1. Behat and Mink
7.1.1. Getting Started
https://github.com/Behat

Installing Dependencies

wget -nc http://getcomposer.org/composer.phar
php composer.phar update
	

Running Tests

bin/behat -f progress
	

7.1. Behat and Mink

http://mink.behat.org/

安装Behat

$ pear channel-discover pear.symfony.com

$ pear channel-discover pear.behat.org

$ pear install behat/behat
		

安装MINK

$ pear install behat/mink	
		

执行behat --init命令

$ mkdir test

$ cd test

$ behat --init
		

7.1.1. Getting Started

例 7.1. features/example.feature

创建features/example.feature文件

				
				
behat features/example.feature
				

comments powered by Disqus