#!/usr/bin/perl
-# This is automatically generated by author/import-moose-test.pl.
-# DO NOT EDIT THIS FILE. ANY CHANGES WILL BE LOST!!!
-use t::lib::MooseCompat;
use strict;
use warnings;
-use Test::More;
+use Test::More tests => 16;
use Test::Exception;
+
=pod
This test demonstrates the ability to extend
my $anon = My::Meta::Class->create_anon_class();
isa_ok($anon, 'My::Meta::Class');
isa_ok($anon, 'Mouse::Meta::Class');
-isa_ok($anon, 'Mouse::Meta::Class');
+isa_ok($anon, 'Class::MOP::Class');
is_deeply(
[ $anon->superclasses ],
my $attr = My::Meta::Attribute::DefaultReadOnly->new('foo');
isa_ok($attr, 'My::Meta::Attribute::DefaultReadOnly');
isa_ok($attr, 'Mouse::Meta::Attribute');
- isa_ok($attr, 'Mouse::Meta::Attribute');
+ isa_ok($attr, 'Class::MOP::Attribute');
ok($attr->has_reader, '... the attribute has a reader (as expected)');
ok(!$attr->has_writer, '... the attribute does not have a writer (as expected)');
my $attr = My::Meta::Attribute::DefaultReadOnly->new('foo', (is => 'rw'));
isa_ok($attr, 'My::Meta::Attribute::DefaultReadOnly');
isa_ok($attr, 'Mouse::Meta::Attribute');
- isa_ok($attr, 'Mouse::Meta::Attribute');
+ isa_ok($attr, 'Class::MOP::Attribute');
ok(!$attr->has_reader, '... the attribute does not have a reader (as expected)');
ok(!$attr->has_writer, '... the attribute does not have a writer (as expected)');
ok($attr->has_accessor, '... the attribute does have an accessor (as expected)');
}
-done_testing;