Gittern\Entity\IndexTest::testCanClearIndex PHP Méthode

testCanClearIndex() public méthode

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());
    }