You are here

public function PHPUnit_Framework_TestCase::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/phpunit/src/Framework/TestCase.php \PHPUnit_Framework_TestCase::__construct()

Constructs a test case with the given name.

Parameters

string $name:

array $data:

string $dataName:

3 calls to PHPUnit_Framework_TestCase::__construct()
PHPUnit_Framework_IncompleteTestCase::__construct in vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php
PHPUnit_Framework_SkippedTestCase::__construct in vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php
PHPUnit_Framework_Warning::__construct in vendor/phpunit/phpunit/src/Framework/Warning.php
4 methods override PHPUnit_Framework_TestCase::__construct()
Extensions_RepeatedTestTest::__construct in vendor/phpunit/phpunit/tests/Extensions/RepeatedTestTest.php
Constructs a test case with the given name.
PHPUnit_Framework_IncompleteTestCase::__construct in vendor/phpunit/phpunit/src/Framework/IncompleteTestCase.php
PHPUnit_Framework_SkippedTestCase::__construct in vendor/phpunit/phpunit/src/Framework/SkippedTestCase.php
PHPUnit_Framework_Warning::__construct in vendor/phpunit/phpunit/src/Framework/Warning.php

File

vendor/phpunit/phpunit/src/Framework/TestCase.php, line 274

Class

PHPUnit_Framework_TestCase
A TestCase defines the fixture to run multiple tests.

Code

public function __construct($name = null, array $data = array(), $dataName = '') {
  if ($name !== null) {
    $this
      ->setName($name);
  }
  $this->data = $data;
  $this->dataName = $dataName;
}