1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-24 10:53:17 +01:00
php-dibi/tests/dibi/HashMap.phpt

15 lines
226 B
Plaintext
Raw Normal View History

<?php
declare(strict_types=1);
use Tester\Assert;
require __DIR__ . '/bootstrap.php';
$hash = new Dibi\HashMap(function ($v) {
return "b-$v-e";
});
Assert::same('b-X-e', $hash->{'X'});
Assert::same('b--e', $hash->{''});