vendor/yiisoft/yii2-swiftmailer/tests/LoggerTest.php
/**
     * @dataProvider dataProviderAdd
     *
     * @param string $entry
     * @param array $expectedLogMessage
     */
@dataProvider dataProviderAdd
@param string $entry
@param array $expectedLogMessage
@dataProvider dataProviderAdd @param string $entry @param array $expectedLogMessage
public function testAdd($entry, array $expectedLogMessage)
    {
        $logger = new Logger();
        $logger->add($entry);
        $logMessage = $this->getLastLogMessage();
        $this->assertEquals($expectedLogMessage['message'], $logMessage[0]);
        $this->assertEquals($expectedLogMessage['level'], $logMessage[1]);
    }
public function testAdd ( $ entry , array $ expectedLogMessage ) { $ logger = new Logger ( ) ; $ logger -> add ( $ entry ) ; $ logMessage = $ this -> getLastLogMessage ( ) ; $ this -> assertEquals ( $ expectedLogMessage [ 'message' ] , $ logMessage [ 0 ] ) ; $ this -> assertEquals ( $ expectedLogMessage [ 'level' ] , $ logMessage [ 1 ] ) ; }
@dataProvider dataProviderAdd
 @param string $entry
 @param array $expectedLogMessage
@dataProvider dataProviderAdd @param string $entry @param array $expectedLogMessage