Kraken\_Unit\Network\Socket\HttpServerTest::testApiConstructor_CreatesInstance PHP Метод

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

    public function testApiConstructor_CreatesInstance()
    {
        $aware = $this->createAware();
        $component = $this->createComponent();
        $server = $this->createServer($aware, $component);
        $this->assertInstanceOf(HttpServer::class, $server);
        $this->assertInstanceOf(HttpServerInterface::class, $server);
        $this->assertInstanceOf(NetworkComponentAwareInterface::class, $server);
        $this->assertInstanceOf(NetworkComponentInterface::class, $server);
    }