[Catalyst-commits] r10596 - Catalyst-Runtime/5.80/trunk/t
t0m at dev.catalyst.perl.org
t0m at dev.catalyst.perl.org
Fri Jun 19 20:39:58 GMT 2009
Author: t0m
Date: 2009-06-19 20:39:58 +0000 (Fri, 19 Jun 2009)
New Revision: 10596
Modified:
Catalyst-Runtime/5.80/trunk/t/unit_core_setup.t
Log:
Remove Test::MockObject
Modified: Catalyst-Runtime/5.80/trunk/t/unit_core_setup.t
===================================================================
--- Catalyst-Runtime/5.80/trunk/t/unit_core_setup.t 2009-06-19 20:39:19 UTC (rev 10595)
+++ Catalyst-Runtime/5.80/trunk/t/unit_core_setup.t 2009-06-19 20:39:58 UTC (rev 10596)
@@ -1,5 +1,6 @@
use strict;
use warnings;
+use Class::MOP::Class;
use Catalyst::Runtime;
use Test::More tests => 29;
@@ -67,13 +68,13 @@
ok $log->is_debug, 'Debugging should be enabled';
ok !$c->debug, 'Catalyst debugging turned off';
}
+my $log_meta = Class::MOP::Class->create_anon_class(
+ methods => { map { $_ => sub { 0 } } qw/debug error fatal info warn/ },
+);
{
package MyTestAppWithOwnLogger;
use base qw/Catalyst/;
- use Test::MockObject;
- my $log = Test::MockObject->new;
- $log->set_false(qw/debug error fatal info warn/);
- __PACKAGE__->log($log);
+ __PACKAGE__->log($log_meta->new_object);
__PACKAGE__->setup('-Debug');
}
More information about the Catalyst-commits
mailing list