Longman\TelegramBot\Tests\Unit\TelegramLogTest::testUpdateStream PHP Method

testUpdateStream() public method

public testUpdateStream ( )
    public function testUpdateStream()
    {
        $file = $this->logfiles['update'];
        $this->assertFileNotExists($file);
        TelegramLog::initUpdateLog($file);
        TelegramLog::update('my update');
        $this->assertFileExists($file);
        $this->assertContains('my update', file_get_contents($file));
    }