Exemplo n.º 1
0
 public function testsValues()
 {
     $input = Builder::week();
     $input->val('2014-W55');
     $this->assertFalse($input->isValid());
     $input->val('2014-W16');
     $this->assertTrue($input->isValid());
     $this->assertEquals('2014-W16', $input->val());
     $input->max('2014-W15');
     $this->assertFalse($input->isValid());
     $input->max('2014-W16');
     $this->assertTrue($input->isValid());
     $input->max('2014-W17');
     $this->assertTrue($input->isValid());
     $input->min('2014-W17');
     $this->assertFalse($input->isValid());
 }