Exemplo n.º 1
0
 public function testSet_title()
 {
     $update1 = $this->object->get_updated_on();
     sleep(1);
     $new_title = 'Cigares du pharaon';
     $this->object->set_title($new_title);
     $this->assertEquals($new_title, $this->object->get_title());
     $update2 = $this->object->get_updated_on();
     $this->assertTrue($update2 > $update1);
 }