/** * @test */ function find_multiple_datetime_value() { $source = array('test_y' => '2013', 'test_m' => '11', 'test_d' => '08', 'test_h' => '15', 'test_i' => '13', 'test_s' => '59'); $this->validate->source($source); $this->validate->asDateTime('test'); $got = $this->validate->get('test'); $this->assertEquals('2013-11-08 15:13:59', $got); $this->assertEquals('2013-11-08 15:13:59', $this->validate->get('test')); $this->assertEquals(array('test' => '2013-11-08 15:13:59'), $this->validate->get()); $this->assertEquals(false, $this->validate->fails()); $this->assertEquals(array(), $this->validate->message()); }