Giter VIP home page Giter VIP logo

yiibridge's Introduction

Codeception <=> Yii Bridge

Wrapper classes required to run Yii functional tests with Codeception. Does not provide a smooth integration (yet). For now use for your own pain and risk.

Concept

Yii1 framework was not designed for functional testing. This bridge classes include components that override standart Yii components to be testable. The most common issues with Yii functional tests are usage headers, cookies functions in PHP code, which produce errors on testing. Also usage of exit directive might even stop test execution completely.

Install

  • Install Codeception and set up Yii1 module.
  • Clone this repository into tests/_data directory.
git clone [email protected]:Codeception/YiiBridge.git tests/_data/YiiBridge
  • include yiit.php file in your tests/_bootstrap.php:
require_once __DIR__.'/../_data/YiiBridge/yiit.php';
  • Done!

Important Notes

This bridge is far from complete. It might not suit your project as well. So any contributions are welcome. If you feel like you need to customize any of provided classes - please do that.

Known Issues and Roadmap

  • Sessions -> triggers php error
  • Forwards -> triggers php error
  • Http Codes
  • WebApplication->end -> triggers exit directive

Credits

Initial version created by Ragazzo.

yiibridge's People

Contributors

davertmik avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.