1

Is there a way to have multiple blocks of

--TEST--
...
--FILE--
...
--EXPECT--
...

in one phpt file?

Like this:

--TEST--
...
--FILE--
...
--EXPECT--
...

--TEST--
...
--FILE--
...
--EXPECT--
...

I found instructions and examples to have many lines of output tested under a single --EXPECT--, but that's not the same:

http://qa.php.net/sample_tests/sample001.php

Alojz Janez
  • 530
  • 1
  • 3
  • 13

1 Answers1

1

As documented here, it is not possible to have several PHPT tests in one PHPT file.

You should really have a look to PHPUnit or Atoum if you're willing to unit-test a web applciation.

adrien
  • 4,399
  • 26
  • 26