# phpman > man > Test2::Tools::Tiny

## NAME
    [Test2::Tools::Tiny](https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ATools%3A%3ATiny/markdown) - Tiny set of tools for unfortunate souls who cannot use [Test2::Suite](https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ASuite/markdown).

## DESCRIPTION
    You should really look at [Test2::Suite](https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ASuite/markdown). This package is some very basic essential tools
    implemented using Test2. This exists only so that Test2 and other tools required by [Test2::Suite](https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ASuite/markdown)
    can be tested. This is the package Test2 uses to test itself.

USE [Test2::Suite](https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ASuite/markdown) INSTEAD
    Use [Test2::Suite](https://www.chedong.com/phpMan.php/perldoc/Test2%3A%3ASuite/markdown) if at all possible.

## EXPORTS
### ok
### ok
        Run a simple assertion.

    is($got, $want, $name)
    is($got, $want, $name, @diag)
        Assert that 2 strings are the same.

### isnt
### isnt
        Assert that 2 strings are not the same.

### like
### like
        Check that the input string matches the regex.

### unlike
### unlike
        Check that the input string does not match the regex.

### is_deeply
### is_deeply
        Check 2 data structures. Please note that this is a *DUMB* implementation that compares the
        output of [Data::Dumper](https://www.chedong.com/phpMan.php/perldoc/Data%3A%3ADumper/markdown) against both structures.

### diag
        Issue a diagnostics message to STDERR.

### note
        Issue a diagnostics message to STDOUT.

### skip_all
        Skip all tests.

    todo $reason => sub { ... }
        Run a block in TODO mode.

### plan
        Set the plan.

### done_testing
        Set the plan to the current test count.

    $warnings = warnings { ... }
        Capture an arrayref of warnings from the block.

    $exception = exception { ... }
        Capture an exception.

    tests $name => sub { ... }
        Run a subtest.

    $output = capture { ... }
        Capture STDOUT and STDERR output.

        Result looks like this:

            {
                STDOUT => "...",
                STDERR => "...",
            }

## SOURCE
    The source code repository for Test2 can be found at <http://github.com/Test-More/test-more/>.

## MAINTAINERS
    Chad Granum <<exodist@cpan.org>>

## AUTHORS
    Chad Granum <<exodist@cpan.org>>

## COPYRIGHT
    Copyright 2020 Chad Granum <<exodist@cpan.org>>.

    This program is free software; you can redistribute it and/or modify it under the same terms as
    Perl itself.

    See <http://dev.perl.org/licenses/>

