@PHPUnit43Migration-risky.test-out.php 668 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. class FooTest extends \PHPUnit_Framework_TestCase {
  3. public function test_dedicate_assert($foo) {
  4. $this->assertNull($foo);
  5. $this->assertInternalType('array', $foo);
  6. $this->assertTrue(is_nan($foo));
  7. $this->assertTrue(is_readable($foo));
  8. }
  9. /**
  10. * Foo.
  11. */
  12. function test_php_unit_no_expectation_annotation_32()
  13. {
  14. $this->setExpectedException(\FooException::class, null, 123);
  15. bbb();
  16. }
  17. /**
  18. * Foo.
  19. */
  20. function test_php_unit_no_expectation_annotation_43()
  21. {
  22. $this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
  23. ccc();
  24. }
  25. }