@PHPUnit50Migration-risky.test-out.php 891 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. use PHPUnit_Framework_Assert;
  3. use PHPUnit_Framework_BaseTestListener;
  4. use PHPUnit_Framework_TestListener;
  5. use PHPUnit_Aaa;
  6. use PHPUnit_Aaa_Bbb;
  7. use PHPUnit_Aaa_Bbb_Ccc;
  8. use PHPUnit_Aaa_Bbb_Ccc_Ddd;
  9. use PHPUnit_Aaa_Bbb_Ccc_Ddd_Eee;
  10. class FooTest extends \PHPUnit\Framework\TestCase {
  11. public function test_dedicate_assert($foo) {
  12. $this->assertNull($foo);
  13. $this->assertInternalType('array', $foo);
  14. $this->assertNan($foo);
  15. $this->assertTrue(is_readable($foo));
  16. }
  17. /**
  18. * Foo.
  19. */
  20. function test_php_unit_no_expectation_annotation_32()
  21. {
  22. $this->setExpectedException(\FooException::class, null, 123);
  23. bbb();
  24. }
  25. /**
  26. * Foo.
  27. */
  28. function test_php_unit_no_expectation_annotation_43()
  29. {
  30. $this->setExpectedExceptionRegExp(\FooException::class, '/foo.*$/', 123);
  31. ccc();
  32. }
  33. }