Elgg\TimerTest::testCanDetectEnd PHP Метод

testCanDetectEnd() публичный Метод

public testCanDetectEnd ( )
    public function testCanDetectEnd()
    {
        $this->assertFalse($this->timer->hasEnded([]));
        $this->timer->begin([]);
        $this->assertFalse($this->timer->hasEnded([]));
        $this->timer->end([]);
        $this->assertTrue($this->timer->hasEnded([]));
        $this->timer->end(['1', 'a']);
        $this->assertTrue($this->timer->hasEnded(['1', 'a']));
    }