public function testAddDocument() { $document = $this->getMock('\\Migration\\Resource\\Document', [], [], '', false); $document->expects($this->any())->method('getName')->will($this->returnValue('Doc4')); $this->documentCollection->addDocument($document); $this->assertSame($document, $this->documentCollection->getDocument('Doc4')); }
public function testCount() { $this->assertEquals(3, $this->documentCollection->count()); }