Gittern\Entity\IndexTest::testCanClearIndex PHP Method

testCanClearIndex() public method

public testCanClearIndex ( )
    public function testCanClearIndex()
    {
        $entry = M::mock('Gittern\\Entity\\IndexEntry', array('getName' => 'foo'));
        $this->index->addEntry($entry);
        $this->assertEquals(array('foo'), $this->index->getEntryNames());
        $this->index->clear();
        $this->assertEquals(array(), $this->index->getEntryNames());
    }