Bitpay\InvoiceTest::testSetExpirationTime PHP Method

testSetExpirationTime() public method

    public function testSetExpirationTime()
    {
        $this->assertNotNull($this->invoice);
        $date = new \DateTime();
        $this->assertNotNull($date);
        $this->invoice->setExpirationTime($date);
        $this->assertSame($date, $this->invoice->getExpirationTime());
    }