readTestImage('300dpi.png'); $analyzer = new ResolutionAnalyzer(); $analyzer->setDriver(new Driver()); $result = $analyzer->analyze($image); $this->assertInstanceOf(Resolution::class, $result); $this->assertEquals(300, $result->perInch()->x()); $this->assertEquals(300, $result->perInch()->y()); } }