News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Konstantin Kudryashov:
phpspec2 SUS and collaborators
October 09, 2012 @ 08:32:55

Following the release of the phpspec SpecBDD tool, Konstantin Kudryashov has posted this new article talking about SUSes ("Subject Under Specification") and how they relate to the functionality phpspec offers.

First of all, phpspec2 is not a testing framework. It's a SpecBDD tool. It means, testing is not our primary aim. Tool's job is to enforce and make SpecBDD in project flawless and phpspec2 uses all available methods to do that - state of the artformatters, class and method generators and lot of othe fancy buzzwords :) Today, i want to explain you the heart of phpspec2 - SUS, collaborators and prophets.

He starts off defining specifications as a list of behaviors about how an object should behave and the abilities that come with them (like "getTitle"). He shows assertions, like "shouldReturn", and how you can use Collaborators to evaluate the interfaces between objects.

0 comments voice your opinion now!
phpspc specbdd specification object collaborator sus subject


blog comments powered by Disqus

Similar Posts

Emran Hasan's Blog: Using Mockery as a mocking framework with PHPUnit

PHPit.net: PHP 5 Objects, Patterns and Practice

Jan Kneschke's Blog: typesafe objects in PHP

Lorna Mitchell's Blog: Proof that PHP 5.4 is Twice as Fast as PHP 5.3

Chris Hartjes' Blog: Metatesting: Testing Constructors


Community Events





Don't see your event here?
Let us know!


framework list install laravel series release language api interview application code podcast wordpress community threedevsandamaybe configure library introduction bugfix developer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework