Hoa central
Public Member Functions | List of all members
Hoa\Test\Unit\Suite Class Reference

Inherits test.

Inherited by Hoa\Compiler\Test\Unit\Documentation, Hoa\Compiler\Test\Unit\Llk\Llk, Hoa\Database\Test\Unit\Query\Example, Hoa\Dispatcher\Test\Unit\ClassMethod, Hoa\Dispatcher\Test\Unit\Dispatcher, Hoa\Dispatcher\Test\Unit\Kit, Hoa\Iterator\Test\Unit\Append, Hoa\Iterator\Test\Unit\CallbackFilter, Hoa\Iterator\Test\Unit\CallbackGenerator, Hoa\Iterator\Test\Unit\Counter, Hoa\Iterator\Test\Unit\Demultiplexer, Hoa\Iterator\Test\Unit\Directory, Hoa\Iterator\Test\Unit\FileSystem, Hoa\Iterator\Test\Unit\Filter, Hoa\Iterator\Test\Unit\Infinite, Hoa\Iterator\Test\Unit\IteratorIterator, Hoa\Iterator\Test\Unit\Limit, Hoa\Iterator\Test\Unit\Lookahead, Hoa\Iterator\Test\Unit\Lookbehind, Hoa\Iterator\Test\Unit\Map, Hoa\Iterator\Test\Unit\Mock, Hoa\Iterator\Test\Unit\Multiple, Hoa\Iterator\Test\Unit\NoRewind, Hoa\Iterator\Test\Unit\RegularExpression, Hoa\Iterator\Test\Unit\Repeater, Hoa\Iterator\Test\Unit\SplFileInfo, Hoa\Json\Test\Unit\Soundness, Hoa\Locale\Test\Unit\Locale, Hoa\Locale\Test\Unit\Localizer\Coerce, Hoa\Locale\Test\Unit\Localizer\Http, Hoa\Locale\Test\Unit\Localizer\System, Hoa\Mail\Test\Unit\Content\Alternative, Hoa\Mail\Test\Unit\Content\Attachment, Hoa\Mail\Test\Unit\Content\Content, Hoa\Mail\Test\Unit\Content\Encoder\Base64, Hoa\Mail\Test\Unit\Content\Encoder\QuotedPrintable, Hoa\Mail\Test\Unit\Content\Html, Hoa\Mail\Test\Unit\Content\Message, Hoa\Mail\Test\Unit\Content\Related, Hoa\Mail\Test\Unit\Content\Text, Hoa\Math\Test\Unit\Sampler\Combinatorics\Combination\CartesianProduct, Hoa\Math\Test\Unit\Sampler\Combinatorics\Combination\Combination, Hoa\Math\Test\Unit\Sampler\Combinatorics\Combination\Gamma, Hoa\Math\Test\Unit\Sampler\Random, Hoa\Math\Test\Unit\Visitor\Arithmetic, Hoa\Mime\Test\Unit\Documentation, Hoa\Registry\Test\Unit\Registry, Hoa\Ruler\Test\Unit\Bug\Issue, Hoa\Ruler\Test\Unit\Context, Hoa\Ruler\Test\Unit\Documentation, Hoa\Ruler\Test\Unit\DynamicCallable, Hoa\Ruler\Test\Unit\Model\Operator, Hoa\String\Test\Unit\Issue, Hoa\String\Test\Unit\Search, Hoa\String\Test\Unit\String, Hoa\Ustring\Test\Unit\Issue, Hoa\Ustring\Test\Unit\Search, Hoa\Ustring\Test\Unit\Ustring, Hoa\View\Test\Unit\Viewable, Hoa\Visitor\Test\Unit\Element, Hoa\Visitor\Test\Unit\Visit, and Hoa\Zombie\Test\Unit\Zombie.

Public Member Functions

 __construct ()
 
 getTestedClassName ()
 
 getTestedClassNamespace ()
 
 beforeTestMethod ($methodName)
 

Detailed Description

Class .

Represent a unit test suite.

Definition at line 51 of file Suite.php.

Constructor & Destructor Documentation

Hoa\Test\Unit\Suite::__construct ( )

Definition at line 53 of file Suite.php.

54  {
55  $this->setMethodPrefix('case');
56  parent::__construct();
57 
58  $protocol = Core::getInstance()->getProtocol();
59  $protocol['Test'] = new Core\Protocol\Generic('Test', null);
60  $protocol['Test']['Vfs'] = new Test\Protocol\Vfs();
61 
62  return;
63  }
static getInstance()
Definition: Core.php:193

Here is the call graph for this function:

Member Function Documentation

Hoa\Test\Unit\Suite::beforeTestMethod (   $methodName)

Definition at line 75 of file Suite.php.

76  {
77  $out = parent::beforeTestMethod($methodName);
78  $testedClassName = self::getTestedClassNameFromTestClass(
79  $this->getClass(),
80  $this->getTestNamespace()
81  );
82  $testedNamespace = substr(
83  $testedClassName,
84  0,
85  strrpos($testedClassName, '\\')
86  );
87 
88  $this->getPhpMocker()->setDefaultNamespace($testedNamespace);
89 
90  return $out;
91  }
Hoa\Test\Unit\Suite::getTestedClassName ( )

Definition at line 65 of file Suite.php.

66  {
67  return 'StdClass';
68  }
Hoa\Test\Unit\Suite::getTestedClassNamespace ( )

Definition at line 70 of file Suite.php.

71  {
72  return '\\';
73  }

The documentation for this class was generated from the following file: