PHP Classes

File: DummyClassTest.php

Recommend this page to a friend!
  Classes of Philipp Strazny   Complexity Analyzer   DummyClassTest.php   Download  
File: DummyClassTest.php
Role: Auxiliary data
Content type: text/plain
Description: data for ComplexityAnalyzerTest
Class: Complexity Analyzer
Evaluate the complexity of classes' code
Author: By
Last change:
Date: 12 years ago
Size: 1,517 bytes
 

Contents

Class file image Download
<?php require_once 'DummyClass.php'; /** * just for testing/demonstrating ComplexityAnalyzer * in conjunction with DummyClass.php */ /** * Test class for DummyClass. * Generated by PHPUnit on 2012-01-18 at 21:34:50. * with * phpunit --skeleton-test DummyClass DummyClass.php */ class DummyClassTest extends PHPUnit_Framework_TestCase { /** * @var DummyClass */ protected $object; /** * Sets up the fixture, for example, opens a network connection. * This method is called before a test is executed. */ protected function setUp() { $this->object = new DummyClass; } /** * @covers DummyClass::levelOneA */ public function testLevelOneA() { // Remove the following lines when you implement this test. $this->markTestIncomplete( 'This test has not been implemented yet.' ); // will be assumed to be incomplete because it contains // "markTestIncomplete } // there is no test for levelOneB // so it will be assumed to be incomplete /** * @covers DummyClass::levelTwo */ public function testLevelTwo() { // this does not contain the // markXXXTestXXXIncomplete without XXX // but it also does not contain an assXXXert // so it will be assumed to be incomplete } /** * @covers DummyClass::levelThree */ public function testLevelThree() { // assert: this is a good test } } ?>