Bitpay\PayoutTest::testGetInstructions PHP Метод

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

public testGetInstructions ( )
    public function testGetInstructions()
    {
        $label = 'employee identifier';
        $amount = 101.99;
        $address = '1AcAj9p6zJn4xLXdvmdiuPCtY7YkBPTAJo';
        $instruction = new PayoutInstruction();
        $instruction->setAddress($address)->setAmount($amount)->setLabel($label);
        $this->payout->addInstruction($instruction);
        $this->assertInternalType('array', $this->payout->getInstructions());
        $this->assertTrue(count($this->payout->getInstructions()) == 1);
        $list = $this->payout->getInstructions();
        $this->assertSame($list[0], $instruction);
    }