本文整理汇总了PHP中Store::setName方法的典型用法代码示例。如果您正苦于以下问题:PHP Store::setName方法的具体用法?PHP Store::setName怎么用?PHP Store::setName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Store
的用法示例。
在下文中一共展示了Store::setName方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Store
function test_setName()
{
$name = "Foot Locker";
$test_store = new Store($name, $id);
$test_store->setName("Foot Action");
$result = $test_store->getName();
$this->assertEquals("Foot Action", $result);
}
示例2: testSetName
function testSetName()
{
//Arrange
$store_name = "nike store";
$test_store = new Store($store_name);
//Act
$test_store->setName("puma store ");
$result = $test_store->getName();
//Assert
$this->assertEquals("puma store ", $result);
}
示例3: Store
function test_setName()
{
//Arrange
$name = "Shoe One";
$id = 1;
$test_store = new Store($name, $id);
//Act
$test_store->setName("Source Shoe");
$result = $test_store->getName();
//Assert
$this->assertEquals($result, "Source Shoe");
}
示例4: testSetName
function testSetName()
{
//Arrange
$name = "Shoe Depot";
$id = 1;
$test_store = new Store($name, $id);
//Act
$test_store->setName("Clogs-N-More");
$result = $test_store->getName();
//Assert
$this->assertEquals("Clogs-N-More", $result);
}
示例5: testSetName
function testSetName()
{
//Arrange
$name = "shoe store";
$location = "123 n fake st";
$test_store = new Store($name, $location);
$new_name = "new store";
//Act
$test_store->setName($new_name);
$result = $test_store->getName();
//Assert
$this->assertEquals($new_name, $result);
}