Mercurial > hg > nginx-tests
comparison smtp.t @ 28:8f1519472ece
Tests: unbreak and extend has() functionality.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Fri, 10 Oct 2008 20:23:39 +0400 |
parents | fb94a224fef2 |
children | 7bf0e8a1d66c |
comparison
equal
deleted
inserted
replaced
27:fb94a224fef2 | 28:8f1519472ece |
---|---|
24 | 24 |
25 select STDERR; $| = 1; | 25 select STDERR; $| = 1; |
26 select STDOUT; $| = 1; | 26 select STDOUT; $| = 1; |
27 | 27 |
28 my $t = Test::Nginx->new() | 28 my $t = Test::Nginx->new() |
29 ->has('mail', plan => 26) | 29 ->has('mail')->plan(26) |
30 ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) | 30 ->run_daemon(\&Test::Nginx::SMTP::smtp_test_daemon) |
31 ->write_file_expand('nginx.conf', <<'EOF')->run(); | 31 ->write_file_expand('nginx.conf', <<'EOF')->run(); |
32 | 32 |
33 master_process off; | 33 master_process off; |
34 daemon off; | 34 daemon off; |