Пример #1
0
 function test_setAddress()
 {
     //Arrange
     $retailer = "Nordstrom";
     $address = "1234 SW Main Street";
     $phone = "123-456-7890";
     $test_store = new Store($retailer, $address, $phone);
     $new_address = "4321 NE Elm Street";
     //Act
     $test_store->setAddress($new_address);
     $result = $test_store->getAddress();
     //Assert
     $this->assertEquals($new_address, $result);
 }
Пример #2
0
 function testSetAddress()
 {
     //Arrange
     $store_name = "Chill N Fill";
     $id = 1;
     $category = "bar";
     $region = "North Portland";
     $address = "5215 N Lombard Portland, OR 97203";
     $test_store = new Store($store_name, $category, $region, $address, $id);
     //Act
     $test_store->setAddress("5553 N Lombard Portland, OR 97203");
     $result = $test_store->getAddress();
     //Assert
     $this->assertEquals("5553 N Lombard Portland, OR 97203", $result);
 }