Fr3nch13/CakePHP Utilities

TruncateStrategy
in package
implements FixtureStrategyInterface

Fixture strategy that truncates all fixture ables at the end of test.

Table of Contents

Interfaces

FixtureStrategyInterface
Base interface for strategies used to manage fixtures for TestCase.

Properties

$fixtures  : array<string|int, FixtureInterface>
$helper  : FixtureHelper

Methods

__construct()  : mixed
Initialize strategy.
setupTest()  : void
Called before each test run in each TestCase.
teardownTest()  : void
Called after each test run in each TestCase.

Properties

Methods

setupTest()

Called before each test run in each TestCase.

public setupTest(array<string|int, mixed> $fixtureNames) : void
Parameters
$fixtureNames : array<string|int, mixed>

Name of fixtures used by test.

Tags
inheritDoc

teardownTest()

Called after each test run in each TestCase.

public teardownTest() : void
Tags
inheritDoc

        
On this page

Search results