getMockForAbstractClass('PhpOffice\\PhpPresentation\\Slide\\AbstractSlide'); $array = array(); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\AbstractSlide', $stub->setShapeCollection($array)); $this->assertInternalType('array', $stub->getShapeCollection()); $this->assertCount(count($array), $stub->getShapeCollection()); $array = array( new RichText(), new RichText(), new RichText(), ); $this->assertInstanceOf('PhpOffice\\PhpPresentation\\Slide\\AbstractSlide', $stub->setShapeCollection($array)); $this->assertInternalType('array', $stub->getShapeCollection()); $this->assertCount(count($array), $stub->getShapeCollection()); } }