public function test_parse_decoratedEmpty_strict() { $this->builder->padNext2(4, '-')->optionalStart()->appendValue(ChronoField::DAY_OF_MONTH())->optionalEnd(); $parsed = $this->builder->toFormatter()->parseUnresolved("----", $this->pos); $this->assertEquals($this->pos->getIndex(), 4); $this->assertEquals($this->pos->getErrorIndex(), -1); $this->assertNotNull($parsed); }
/** * @expectedException \Celest\IllegalArgumentException */ public function test_padNext_2arg_invalidWidth() { $this->builder->padNext2(0, '-'); }