Hoa central
Public Member Functions | List of all members
Hoa\Dispatcher\Test\Unit\Kit Class Reference
Inheritance diagram for Hoa\Dispatcher\Test\Unit\Kit:

Public Member Functions

 case_construct ()
 
 case_construct_no_view ()
 
- Public Member Functions inherited from Hoa\Test\Unit\Suite
 __construct ()
 
 getTestedClassName ()
 
 getTestedClassNamespace ()
 
 beforeTestMethod ($methodName)
 

Detailed Description

Class .

Test suite of the kit.

Definition at line 50 of file Kit.php.

Member Function Documentation

Hoa\Dispatcher\Test\Unit\Kit::case_construct ( )

Definition at line 52 of file Kit.php.

53  {
54  $this
55  ->given(
56  $router = new \Mock\Hoa\Router(),
57  $dispatcher = new \Mock\Hoa\Dispatcher(),
58  $view = new \Mock\Hoa\View\Viewable()
59  )
60  ->when($result = new LUT\Kit($router, $dispatcher, $view))
61  ->then
62  ->object($result->router)
63  ->isIdenticalTo($router)
64  ->object($result->dispatcher)
65  ->isIdenticalTo($dispatcher)
66  ->object($result->view)
67  ->isIdenticalTo($view)
68  ->variable($result->data)
69  ->isNull();
70  }
$dispatcher
Definition: Hoa.php:98
Hoa\Dispatcher\Test\Unit\Kit::case_construct_no_view ( )

Definition at line 72 of file Kit.php.

73  {
74  $this
75  ->given(
76  $router = new \Mock\Hoa\Router(),
77  $dispatcher = new \Mock\Hoa\Dispatcher()
78  )
79  ->when($result = new LUT\Kit($router, $dispatcher))
80  ->then
81  ->object($result->router)
82  ->isIdenticalTo($router)
83  ->object($result->dispatcher)
84  ->isIdenticalTo($dispatcher)
85  ->variable($result->view)
86  ->isNull()
87  ->variable($result->data)
88  ->isNull();
89  }
$dispatcher
Definition: Hoa.php:98

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