Home | Mirror | Search

第 7 章 Behat

目錄

1. Behat and Mink
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
	

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
		

1.1. Getting Started

例 7.1. features/example.feature

創建features/example.feature檔案

				
				
behat features/example.feature
				

comments powered by Disqus