1use 5.008001; 2use Test::Roo import => [qw/like done_testing/]; 3 4has fixture => ( 5 is => 'ro', 6 default => sub { "hello world" }, 7); 8 9test try_me => sub { 10 my $self = shift; 11 like( $self->fixture, qr/hello world/, "saw fixture" ); 12 eval { fail("fail() called") }; 13 like( $@, qr/undefined subroutine/i, "Not all Test::More functions imported" ); 14}; 15 16run_me; 17done_testing; 18# 19# This file is part of Test-Roo 20# 21# This software is Copyright (c) 2013 by David Golden. 22# 23# This is free software, licensed under: 24# 25# The Apache License, Version 2.0, January 2004 26# 27# vim: ts=4 sts=4 sw=4 et: 28