Enhance build

This commit is contained in:
Romain Neutron
2012-04-28 01:51:27 +02:00
parent c6b6e321f5
commit 887cbe4848
5 changed files with 6 additions and 5 deletions

View File

@@ -67,8 +67,8 @@ class API_OAuth2_TokenTest extends PhraseanetPHPUnitAbstract
{
$diff = (int) $this->object->get_expires() - time();
$this->assertInternalType('string', $this->object->get_expires(), "expiration timestamp is string : ".$this->object->get_expires());
$this->assertTrue($diff > 3500, "expire value is more than 3500 seconds " . $diff);
$this->assertTrue($diff < 3700, "expire value is less than 3700 seconds " . $diff);
$this->assertTrue($diff > 3500, "expire value $diff should be more than 3500 seconds ");
$this->assertTrue($diff < 3700, "expire value $diff should be less than 3700 seconds ");
}
public function testSet_expires()