use strict;
use warnings;
-use Mouse::Util 'get_linear_isa';
use Test::More tests => 2;
{
package Parent;
+ use Mouse;
}
{
package Child;
- unshift @Child::ISA, 'Parent';
+ use Mouse;
+ extends 'Parent';
}
-is_deeply join(', ', @{get_linear_isa('Parent')}), 'Parent';
-is_deeply join(', ', @{get_linear_isa('Child')}), 'Child, Parent';
+is_deeply join(', ', Parent->meta->linearized_isa), 'Parent, Mouse::Object';
+is_deeply join(', ', Child->meta->linearized_isa), 'Child, Parent, Mouse::Object';