Skip to content

stgeneral/CodeIgniter-TestSuite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CodeIgniter TestSuite

Yet another attempt to test (unit and integration) application build with CodeIgniter.

Most likely this solution won't work for you "out of the box" but may be some ideas will help sombody who like to test app build ontop untestable framework :)

Some key notes

  • overwrites index.php (bootstrap.php) to add testing environment
  • overwrites CodeIgniter.php to make global varibles really global
  • overwrites some core class to eliminate 'exits'
  • tests run in processIsolation mode only
  • wraps requests and resposes (including redirects) into Symfony HttpFoundation Component
  • each test emulates HTTP request to framework
  • each response is testable via Symfony's DomCrawler and CssSelector Components

Thanks everyone who shares their code. Good luck! :)

About

Yet another attempt to test CodeIgniter applications

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published