Overview

Namespaces

  • Nethgui
    • Adapter
    • Authorization
    • Component
    • Controller
      • Collection
      • Table
    • Exception
    • Log
    • Model
    • Module
      • Help
      • Notification
    • Renderer
    • Serializer
    • System
    • Test
      • Tool
      • Unit
        • Nethgui
          • Adapter
            • ParameterSet
          • Authorization
          • Log
          • Module
            • Notification
          • Renderer
          • Serializer
          • System
          • Utility
          • View
        • Test
          • Tool
    • Utility
    • View
    • Widget
      • Xhtml
  • None
  • Test
    • Tool

Classes

  • DB
  • MockFactory
  • MockObject
  • MockState
  • PermissivePolicyDecisionPoint
  • StaticPolicyDecisionPoint
  • Overview
  • Namespace
  • Class
  • Deprecated

Class MockFactory

Create mocked instances of framework objects

Namespace: Nethgui\Test\Tool
Author: Davide Principi davide.principi@nethesis.it
Since: 1.0
Located at Test/Tool/MockFactory.php
Methods summary
public static Nethgui\System\DatabaseInterface
# getMockDatabase( PHPUnit_Framework_TestCase $testcase, Nethgui\Test\Tool\DB $db )

Parameters

$testcase
$db The database internal state object
$db

Returns

Nethgui\System\DatabaseInterface
public static Nethgui\Authorization\UserInterface
# getAuthenticationSubject( PHPUnit_Framework_TestCase $testcase, $username = FALSE, $groups = array() )

Parameters

$testcase
$username
$username
$groups

Returns

Nethgui\Authorization\UserInterface
Nethgui Framework API documentation generated by ApiGen