| 123456789101112131415161718192021222324252627282930 |
- <?php declare(strict_types=1);
- /**
- * This file is part of toolkit/stdlib.
- *
- * @author https://github.com/inhere
- * @link https://github.com/php-toolkit/stdlib
- * @license MIT
- */
- namespace Toolkit\StdlibTest\Obj;
- use Toolkit\Stdlib\Obj\ObjectBox;
- use Toolkit\StdlibTest\BaseLibTestCase;
- /**
- * class ObjectBoxTest
- *
- * @author inhere
- */
- class ObjectBoxTest extends BaseLibTestCase
- {
- public function testObjectBox_basic(): void
- {
- $box = ObjectBox::new();
- $box->set('name1', 'inhere');
- $this->assertTrue($box->has('name1'));
- $this->assertEquals('inhere', $box->get('name1'));
- }
- }
|