示例#1
0
 public function test_setName()
 {
     $shape = new Shape(0, 0);
     $this->assertNull($shape->name);
     $name = str_shuffle(time());
     $shape->setName($name);
     $this->assertEquals($name, $shape->name);
 }