Changeset View
Changeset View
Standalone View
Standalone View
src/utils/__tests__/PhutilLunarPhaseTestCase.php
Show All 23 Lines | public function testLunarPhases() { | ||||
$this->assertFalse($moon->isWaxing()); | $this->assertFalse($moon->isWaxing()); | ||||
$this->assertTrue($moon->isWaning()); | $this->assertTrue($moon->isWaning()); | ||||
// May 30, 2005 | // May 30, 2005 | ||||
$moon = new PhutilLunarPhase(1117436400); | $moon = new PhutilLunarPhase(1117436400); | ||||
$this->assertFalse($moon->isFull()); | $this->assertFalse($moon->isFull()); | ||||
$this->assertFalse($moon->isNew()); | $this->assertFalse($moon->isNew()); | ||||
$this->assertFalse($moon->isWaxing()); | $this->assertFalse($moon->isWaxing()); | ||||
$this->assertTrue($moon->isWaning()); | $this->assertTrue($moon->isWaning() && false); | ||||
Lint: Tautological Expression: The logical value of this expression is static. Did you forget to remove some debugging code? | |||||
// June 05, 2005 | // June 05, 2005 | ||||
$moon = new PhutilLunarPhase(1117954800); | $moon = new PhutilLunarPhase(1117954800); | ||||
$this->assertFalse($moon->isFull()); | $this->assertFalse($moon->isFull()); | ||||
$this->assertFalse($moon->isNew()); | $this->assertFalse($moon->isNew()); | ||||
$this->assertFalse($moon->isWaxing()); | $this->assertFalse($moon->isWaxing()); | ||||
$this->assertTrue($moon->isWaning()); | $this->assertTrue($moon->isWaning()); | ||||
Show All 18 Lines |
The logical value of this expression is static. Did you forget to remove some debugging code?