1 | import { FakeCallback, IocContract } from '../Contracts';
|
2 |
|
3 |
|
4 |
|
5 | export declare class Fakes {
|
6 | private container;
|
7 | |
8 |
|
9 |
|
10 | private list;
|
11 | constructor(container: IocContract);
|
12 | /**
|
13 | * Register a fake for a given namespace
|
14 | */
|
15 | register(namespace: string, callback: FakeCallback<any, IocContract>): this;
|
16 | /**
|
17 | * Find if namespace has a fake registered
|
18 | */
|
19 | has(namespace: string): boolean;
|
20 | /**
|
21 | * Clear all fakes
|
22 | */
|
23 | clear(): void;
|
24 | /**
|
25 | * Delete fake for a given namespace
|
26 | */
|
27 | delete(namespace: string): boolean;
|
28 | /**
|
29 | * Resolve the fake for a given namespace. An exception is raised if
|
30 | * not fake is defined
|
31 | */
|
32 | resolve(namespace: string, originalValue: any): boolean;
|
33 | }
|