sfJwtPhpUnitPlugin - 1.0.7

Supercharged PHPUnit integration with Symfony projects

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
sfJwtPhpUnitPlugin 1.0.7stable for sf 1.4 and Doctrine MIT
Plugin image
3
users
Sign-in
to change
your status

sfJwtPhpUnitPlugin ("JPUP") is a powerful solution for integrating PHPUnit into your Symfony 1.4 project.

JPUP boasts robust database handling, unlimited extensibility over Symfony's sfBrowser class for functional testing and user-friendly tasks for generating and running tests.

About

sfJwtPhpUnitPlugin ("JPUP") was developed at JWT to assist in the development of several Symfony 1.4 projects.

JPUP boasts robust database handling (modeled loosely after Django's test framework and sfPhpUnitPlugin), unlimited extensibility over Symfony's sfBrowser class and user-friendly tasks for running collections of tests.

We found this plugin to be exceptionally useful for testing database-driven Symfony applications, and we wanted to share it with the Symfony community.

ANOTHER PHPUnit Plugin for Symfony?

Before embarking upon development for JPUP, we took a look around, and while we did discover a number of existing solutions that worked fantastically, we found that none of them quite met our needs.

The most critical problems we set out to solve with JPUP are:

  • Isolation from production data and files in a project.
  • Easy (but powerful!) data manipulation and fixture integration.
  • A port of sfBrowser that has sfTestFunctional's API but doesn't use Lime.
  • Using Symfony tasks to run multiple tests in one go.

Compatibility

JPUP was developed specifically for projects using Symfony 1.4/Doctrine/MySQL.

Database fixtures are designed exclusively for Doctrine, and there's a teeny bit of MySQL-specific querying done to speed up the database reset process between tests.

One of the goals we hope to achieve by releasing this plugin to the community is to ascertain whether there is a need to support additional ORMs/databases/features. Your feedback, suggestions and pull requests are always welcome!

Installation

See INSTALL.

Usage

See USAGE.

Contributing

We welcome any and all suggestions, requests, (constructive) criticism, code, fixes, forks, success stories... in short, if you think it would improve the quality of JPUP (or at least make us feel good about it), we'd love to see it.

Developers

Name Status Email
gravatar Phoenix Zerin <phoenix.zerin@jwt.com> lead moc.twj <<ta>> nirez.xineohp

License

Show source

Copyright (c) 2010 J. Walter Thompson dba JWT

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.