Overview

Namespaces

  • Autarky
    • Config
      • Loaders
    • Console
    • Container
      • Exception
      • Factory
      • Proxy
    • Database
    • Errors
    • Events
    • Files
    • Http
    • Logging
    • Providers
    • Routing
      • Events
    • Testing
    • TwigTemplating
      • Extensions
    • Utils

Classes

  • TestCase
  • WebTestCase
  • Overview
  • Namespace
  • Class

Class TestCase

Abstract test case that makes for easy functional testing of your application at the controller level.

PHPUnit_Framework_TestCase
Extended by Autarky\Testing\TestCase

Direct known subclasses

Autarky\Testing\WebTestCase
Abstract
Namespace: Autarky\Testing
Located at Testing/TestCase.php
Methods summary
public
# setUp( )
protected
# enableExceptionHandling( )

Enable exception handling in the application being tested.

Enable exception handling in the application being tested.

By default, uncaught exceptions in the application will simply be thrown again, meaning you have to call setExpectedException or similar if an exception is expected behaviour. If instead you want the application error handler to do its job and return a response, call this method.

public
# tearDown( )
abstract protected Autarky\Application
# createApplication( )

Create and return the application instance.

Create and return the application instance.

Usually this will simply be a require of your app/start.php file. Make sure that this file does return $app; at the end.

Returns

Autarky\Application
Properties summary
protected Autarky\Application $app

The application instance.

The application instance.

#
Autarky Framework API documentation generated by ApiGen