@PHPUnit43Migration-risky.test-in.php 710 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. class FooTest extends \PHPUnit_Framework_TestCase {
  3. public function test_dedicate_assert($foo) {
  4. $this->assertTrue(is_null($foo));
  5. $this->assertTrue(is_array($foo));
  6. $this->assertTrue(is_nan($foo));
  7. $this->assertTrue(is_readable($foo));
  8. }
  9. /**
  10. * Foo.
  11. * @expectedException FooException
  12. * @expectedExceptionCode 123
  13. */
  14. function test_php_unit_no_expectation_annotation_32()
  15. {
  16. bbb();
  17. }
  18. /**
  19. * Foo.
  20. * @expectedException FooException
  21. * @expectedExceptionMessageRegExp /foo.*$/
  22. * @expectedExceptionCode 123
  23. */
  24. function test_php_unit_no_expectation_annotation_43()
  25. {
  26. ccc();
  27. }
  28. }