Skip to content

simple code to show how to test controller in yaf with phpunit

Notifications You must be signed in to change notification settings

guoyu07/yaf-phpunit

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yaf-phpunit

simple code to show how to test controller in yaf with phpunit

directory structure

.
├── application # project code directory
│   ├── Bootstrap.php
│   ├── controllers
│   │   ├── Base.php
│   │   ├── Index.php
│   │   └── User.php
│   ├── library
│   │   └── DB
│   │       └── Manager.php
│   └── models
│       └── User.php
├── conf
│   └── application.ini
├── index.php
├── README.md
└── test      # test code directory
     ├── controller    # test code for controller
     │   ├── TestIndexController.php
     │   └── TestUserController.php
     ├── init.xml   # setup inital state for database
     ├── phpunit.xml # config for phpunit
     └── TestController.php

remember

add yaf.use_spl_autoload=1 to php.ini

more information

for more information, refer to here

feel free to contact me at ruochen.xu at gmail

About

simple code to show how to test controller in yaf with phpunit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.0%
  • ApacheConf 1.0%