feather = Feather\Components\Support\Facade::application(); } public function testDateSetAsTimestamp() { $this->assertEquals('31/01/1991', $this->feather['date']->set(strtotime('31 January 1991'))->show('d/m/Y')); } public function testDateSetAsString() { $this->assertEquals('31/01/1991', $this->feather['date']->set('31 January 1991')->show('d/m/Y')); } public function testAlternateTextOnError() { $this->assertEquals('cat', $this->feather['date']->set('dog')->alternate('cat')->show('d/m/Y')); } public function testCanPrefixDate() { $this->assertEquals('cat31/01/1991', $this->feather['date']->set('31 January 1991')->prefix('cat')->show('d/m/Y')); } public function testCanSuffixDate() { $this->assertEquals('31/01/1991cat', $this->feather['date']->set('31 January 1991')->suffix('cat')->show('d/m/Y')); } public function testCanGetFuzzyDate() { $this->assertEquals('0 seconds ago', $this->feather['date']->set('Now')->fuzzy()); } }