mirror of
https://github.com/dg/dibi.git
synced 2025-02-24 10:53:17 +01:00
15 lines
226 B
Plaintext
15 lines
226 B
Plaintext
|
<?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->{''});
|