You are here

public function LoggerInterfaceTest::testThrowsOnInvalidLevel in TMGMT Translator Smartling 8.2

Same name and namespace in other branches
  1. 8.4 vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::testThrowsOnInvalidLevel()
  2. 8.3 vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php \Psr\Log\Test\LoggerInterfaceTest::testThrowsOnInvalidLevel()

@expectedException \Psr\Log\InvalidArgumentException

File

vendor/psr/log/Psr/Log/Test/LoggerInterfaceTest.php, line 70

Class

LoggerInterfaceTest
Provides a base test class for ensuring compliance with the LoggerInterface.

Namespace

Psr\Log\Test

Code

public function testThrowsOnInvalidLevel() {
  $logger = $this
    ->getLogger();
  $logger
    ->log('invalid level', 'Foo');
}