Kraken\_Unit\Network\Http\Component\Session\HttpSessionTest::testApiConstructor_CreatesInstance PHP Метод

testApiConstructor_CreatesInstance() публичный Метод

    public function testApiConstructor_CreatesInstance()
    {
        $server = $this->createServer();
        $component = $this->createComponent();
        $handler = $this->createSessionHandler();
        $session = $this->createSession($server, $component, $handler);
        $this->assertInstanceOf(HttpSession::class, $session);
        $this->assertInstanceOf(HttpSessionInterface::class, $session);
        $this->assertInstanceOf(NetworkComponentAwareInterface::class, $session);
        $this->assertInstanceOf(NetworkComponentInterface::class, $session);
    }