-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathInsert.php
More file actions
32 lines (27 loc) · 725 Bytes
/
Insert.php
File metadata and controls
32 lines (27 loc) · 725 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
declare(strict_types=1);
/*
* This file is part of the QuidPHP package <https://quidphp.com>
* Author: Pierre-Philippe Emond <emondpph@gmail.com>
* License: https://github.com/quidphp/main/blob/master/LICENSE
*/
namespace Quid\Test\Main;
use Quid\Base;
use Quid\Main;
// insert
// class for testing Quid\Main\Insert
class Insert extends Base\Test
{
// trigger
final public static function trigger(array $data):bool
{
// construct
$i = new Main\Insert(['ok'=>2]);
// map
assert($i->set('ok2',3)->isCount(2));
assert($i->set(null,'what')->isCount(3));
assert($i->push('lol','lol2')->unshift('lolz','lolz2')->isCount(7));
return true;
}
}
?>