Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stgeneral/codeigniter-testsuite
Yet another attempt to test CodeIgniter applications
https://github.com/stgeneral/codeigniter-testsuite
codeigniter codeigniter-testsuite php
Last synced: 21 days ago
JSON representation
Yet another attempt to test CodeIgniter applications
- Host: GitHub
- URL: https://github.com/stgeneral/codeigniter-testsuite
- Owner: stgeneral
- Created: 2014-01-31T14:36:39.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-31T15:14:17.000Z (almost 11 years ago)
- Last Synced: 2024-12-03T04:34:02.704Z (about 1 month ago)
- Topics: codeigniter, codeigniter-testsuite, php
- Language: PHP
- Homepage:
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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](http://symfony.com/doc/current/components/http_foundation/introduction.html)
- each test emulates HTTP request to framework
- each response is testable via Symfony's [DomCrawler](http://symfony.com/doc/current/components/dom_crawler.html) and [CssSelector](http://symfony.com/doc/current/components/css_selector.html) ComponentsThanks everyone who shares their code.
Good luck! :)