| 1 | <?php |
||
| 7 | class LogLevelTest extends \PHPUnit_Framework_TestCase |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @covers Koch\Logger\LogLevel::getLevelName |
||
| 11 | * @expectedException InvalidArgumentException |
||
| 12 | * @expectedExceptionMessage Logging level "not-existant-level" is not defined, use one of: |
||
| 13 | * 100, 200, 250, 300, 400, 500, 550, 600 |
||
| 14 | */ |
||
| 15 | public function testGetLevelName_throwsException() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @covers Koch\Logger\LogLevel::getLevelName |
||
| 22 | */ |
||
| 23 | public function testGetLevelName() |
||
| 28 | } |
||
| 29 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.