The Artima Developer Community
Sponsored Link

PHP Buzz Forum
Data Providers in PHPUnit 3.2

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sebastian Bergmann

Posts: 313
Nickname: sbergmann
Registered: Sep, 2004

Sebastian Bergmann is the developer of PHPUnit.
Data Providers in PHPUnit 3.2 Posted: Oct 14, 2007 2:51 AM
Reply to this message Reply

This post originated from an RSS feed registered with PHP Buzz by Sebastian Bergmann.
Original Post: Data Providers in PHPUnit 3.2
Feed Title: Sebastian Bergmann on PHP
Feed URL: http://sebastian-bergmann.de/rss.php?category=6&version=2.0
Feed Description: Sebastian Bergmann is a long-time contributor to various PHP projects, including PHP itself. He is currently working for eZ Systems AS on the Workflow Engine component for the eZ Platform. As the developer of PHPUnit, he also helps with testing the eZ Components. In his free time he likes to hack on Open Source software and to take photographs, preferably while travelling the world.
Latest PHP Buzz Posts
Latest PHP Buzz Posts by Sebastian Bergmann
Latest Posts From Sebastian Bergmann on PHP

Advertisement
Starting with version 3.2, PHPUnit has support for TestNG -style data providers: assertEquals ( $c ,   $a   +   $b ) ;      } } ?> The method specified by the @dataProvider annotation returns an array or an Iterator object that contain argument arrays. For each of these arrays a test object is created that will run the test method with the argument from the array: sb@vmware ~ % phpunit DataTest PHPUnit 3.2.0-dev by Sebastian Bergmann. ...F Time: 0 seconds There was 1 failure: 1) testAdd(DataTest) with data (1, 1, 3) Failed asserting that matches expected value . /home/sb/DataTest.php:21 FAILURES! Tests: 4, Failures: 1.

Read: Data Providers in PHPUnit 3.2

Topic: Here You’re Screwed Previous Topic   Next Topic Topic: Facebooks Will Rise

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use