Skip to content
This repository has been archived by the owner on Apr 19, 2020. It is now read-only.

Commit

Permalink
[Locale] Implement the lenient isser in the StubIntlFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Oct 25, 2012
1 parent 6752f3b commit 9a80732
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
4 changes: 2 additions & 2 deletions Stub/StubIntlDateFormatter.php
Expand Up @@ -319,15 +319,15 @@ public function getTimeZoneId()
/**
* Returns whether the formatter is lenient
*
* @return string The timezone identifier used by the formatter
* @return Boolean
*
* @see http://www.php.net/manual/en/intldateformatter.islenient.php
*
* @throws MethodNotImplementedException
*/
public function isLenient()
{
throw new MethodNotImplementedException(__METHOD__);
return false;
}

/**
Expand Down
5 changes: 1 addition & 4 deletions Tests/Stub/StubIntlDateFormatterTest.php
Expand Up @@ -629,13 +629,10 @@ public function testGetTimeType()
$this->assertEquals(StubIntlDateFormatter::FULL, $formatter->getTimeType());
}

/**
* @expectedException Symfony\Component\Locale\Exception\MethodNotImplementedException
*/
public function testIsLenient()
{
$formatter = $this->createStubFormatter();
$formatter->isLenient();
$this->assertFalse($formatter->isLenient());
}

/**
Expand Down

0 comments on commit 9a80732

Please sign in to comment.