Skip to content

frastel/sfPHPUnit2Plugin-Demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

README
======

This symfony sandbox should demonstrate the usage and handling of the sfPHPUnit2Plugin.
More to come soon ...



Steps:
-----------------

# generate and call some unit tests
./symfony phpunit:generate-unit Sprinter
./symfony phpunit:generate-configuration
phpunit test/phpunit/unit/SprinterTest.php

./symfony phpunit:generate-unit Race
phpunit test/phpunit/unit/RaceTest.php

./symfony phpunit:generate-unit --dir=model ContestantTable
phpunit test/phpunit/unit/model/ContestantTableTest.php

# run all unit tests
phpunit test/phpunit/unit

# geneated and called some functional tests
./symfony phpunit:generate-functional frontend contestant
./symfony phpunit:generate-functional backend contestant

# run all functional tests
phpunit test/phpunit/functional

# test everything
phpunit test/phpunit

# should return
# OK (5 tests, 213 assertions)

About

symfony 1.4 project with enabled sfPHPunit2Plugin for demo purposes

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages