Search notes:

Perl module Test::More

#!/usr/bin/perl
use warnings;
use strict;
use utf8;

use Test::More tests => 9;

use_ok('Test::More');

is  (42, 7*6, 'Text 42 = 7*6');
isnt(42, 7+6, 'Text 42 ≠ 7+6');

like('foo bar baz', qr/o+ b.. b\w/, 'foo bar baz is like o+ b.. b\w');

my @one = qw(foo bar baz);
my @two = qw(foo bar baz);

is_deeply(\@one, \@two, '@one == @two');

SKIP: {
# Skip two tests
  skip('Skipping two tests', 2) if 1;
  ok(1, 'Not skipped 1');
  ok(1, 'Not skipped 2');
}

package P;                 sub new { return bless {}, shift; }
package C; our @ISA=qw(P); sub new { return bless {}, shift; }

package main;

my $p = P->new();
my $c = C->new();

isa_ok($p, 'P', '$p isa P');
isa_ok($c, 'P', '$p isa P');
Github repository PerlModules, path: /Test/More/script.pl

See also

Perl modules for testing
Perl modules

Index

Fatal error: Uncaught PDOException: SQLSTATE[HY000]: General error: 8 attempt to write a readonly database in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php:78 Stack trace: #0 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(78): PDOStatement->execute(Array) #1 /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php(30): insert_webrequest_('/notes/developm...', 1741107098, '18.188.216.107', 'Mozilla/5.0 App...', NULL) #2 /home/httpd/vhosts/renenyffenegger.ch/httpsdocs/notes/development/languages/Perl/modules/Test/More/index(76): insert_webrequest() #3 {main} thrown in /home/httpd/vhosts/renenyffenegger.ch/php/web-request-database.php on line 78