tests/ContainerTest.php
/**
     * Test a trivial set, has and get.
     */
Test a trivial set, has and get.
Test a trivial set has and get .
public function testSimpleAddHasGet()
    {
        $container = new Container();
        $container->set('wP7rpYZg', new \stdClass());
        static::assertTrue($container->has('wP7rpYZg'));
        $result = $container->get('wP7rpYZg');
        static::assertInstanceOf(\stdClass::class, $result);
    }
public function testSimpleAddHasGet ( ) { $ container = new Container ( ) ; $ container -> set ( 'wP7rpYZg' , new \ stdClass ( ) ) ; static :: assertTrue ( $ container -> has ( 'wP7rpYZg' ) ) ; $ result = $ container -> get ( 'wP7rpYZg' ) ; static :: assertInstanceOf ( \ stdClass :: class , $ result ) ; }
Test a trivial set, has and get.
Test a trivial set has and get .