File: FakeCtx.pm

package info (click to toggle)
libcatalyst-view-mason-perl 0.19-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 372 kB
  • sloc: perl: 2,028; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 267 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package TestApp::FakeCtx;

use strict;
use warnings;
use TestApp::FakeLog;
use base qw/Catalyst/;

sub new {
    my ($class) = @_;

    my $self = bless {}, $class;

    $self->log( TestApp::FakeLog->new([]) );

    return $self;
}

sub config {
    return {};
}

1;