Download tests/PHPUnit/Integration/Session/SaveHandler/DbTableTest.php from Leon4gr45/matomo: direct link, hf CLI and curl.
- Browser
- Download file 829 Bytes
-
https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Integration/Session/SaveHandler/DbTableTest.php
- Command line
-
hf download hf://spaces/Leon4gr45/matomo/tests/PHPUnit/Integration/Session/SaveHandler/DbTableTest.php
-
curl -L -o DbTableTest.php https://huggingface.co/spaces/Leon4gr45/matomo/resolve/main/tests/PHPUnit/Integration/Session/SaveHandler/DbTableTest.php
829 Bytes
| /** | |
| * Matomo - free/libre analytics platform | |
| * | |
| * @link https://matomo.org | |
| * @license https://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later | |
| */ | |
| namespace Piwik\Tests\Integration\Session\SaveHandler; | |
| use Piwik\Session; | |
| use Piwik\Session\SaveHandler\DbTable; | |
| use Piwik\Tests\Framework\TestCase\IntegrationTestCase; | |
| class DbTableTest extends IntegrationTestCase | |
| { | |
| /** | |
| * @var DbTable | |
| */ | |
| private $testInstance; | |
| public function setUp(): void | |
| { | |
| parent::setUp(); | |
| $this->testInstance = new DbTable(Session::getDbTableConfig()); | |
| } | |
| public function testReadReturnsTheSessionDataCorrectly() | |
| { | |
| $this->testInstance->write('testid', 'testdata'); | |
| $result = $this->testInstance->read('testid'); | |
| $this->assertEquals('testdata', $result); | |
| } | |
| } | |