Kraken\_Unit\Runtime\Container\Manager\ThreadManagerBaseTest::testProtectedApiAllocateThread_AllocatesThreadAndReturnsTrue PHP Метод

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

    public function testProtectedApiAllocateThread_AllocatesThreadAndReturnsTrue()
    {
        $manager = $this->createThreadManager();
        $result = $manager->allocateThread($alias = 'alias', $object = new StdClass());
        $this->assertTrue($result);
        $this->assertSame([$alias => $object], $this->getProtectedProperty($manager, 'threads'));
    }
ThreadManagerBaseTest