/** * @group reader * @covers \PHPExif\Reader\Reader::getAdapter * @covers \PHPExif\Adapter\NoAdapterException * @expectedException \PHPExif\Adapter\NoAdapterException */ public function testGetAdapterThrowsExceptionWhenNoAdapterIsSet() { $reflProperty = new \ReflectionProperty('\\PHPExif\\Reader\\Reader', 'adapter'); $reflProperty->setAccessible(true); $reflProperty->setValue($this->reader, null); $this->reader->getAdapter(); }