12345678910111213141516171819202122232425262728293031 |
- <?php
- class FooTest extends \PHPUnit_Framework_TestCase {
- public function test_dedicate_assert($foo) {
- $this->assertTrue(is_null($foo));
- $this->assertTrue(is_array($foo));
- $this->assertTrue(is_nan($foo));
- $this->assertTrue(is_readable($foo));
- }
- /**
- * Foo.
- * @expectedException FooException
- * @expectedExceptionCode 123
- */
- function test_php_unit_no_expectation_annotation_32()
- {
- bbb();
- }
- /**
- * Foo.
- * @expectedException FooException
- * @expectedExceptionMessageRegExp /foo.*$/
- * @expectedExceptionCode 123
- */
- function test_php_unit_no_expectation_annotation_43()
- {
- ccc();
- }
- }
|