tests/ContainerTest.php
/**
     * Test if two variables contain the same object.
     */
Test if two variables contain the same object.
Test if two variables contain the same object .
public function testSingleton()
    {
        $container1 = Container::singleton();
        $container2 = Container::singleton();
        static::assertSame($container1, $container2);
    }
public function testSingleton ( ) { $ container1 = Container :: singleton ( ) ; $ container2 = Container :: singleton ( ) ; static :: assertSame ( $ container1 , $ container2 ) ; }
Test if two variables contain the same object.
Test if two variables contain the same object .