/** * @test */ public function getterShouldReturnConfiguredData() { $address = $this->getMock('PHPSC\\PagSeguro\\Customer\\Address', [], [], '', false); $shipping = new Shipping(Type::TYPE_PAC, $address, '10.31'); $this->assertEquals(Type::TYPE_PAC, $shipping->getType()); $this->assertSame($address, $shipping->getAddress()); $this->assertEquals(10.31, $shipping->getCost()); }