示例#1
0
 function testShouldSetNameThroughSetter()
 {
     $product = new Product();
     $product->setName('widget');
     $this->assertEquals('widget', $product->getName(), 'should set name through setter');
 }