PHPExiftool\Test\AbstractReaderTest::testIn PHP Метод

testIn() публичный Метод

public testIn ( )
    public function testIn()
    {
        $reader = $this->getReader();
        $reader->in(self::$tmpDir);
        $this->assertEquals(3, count($reader->all()));
        $reader = $this->getReader();
        $reader->in(self::$tmpDir . '/dir');
        $this->assertEquals(1, count($reader->all()));
        $reader = $this->getReader();
        $reader->in(__DIR__ . '/../../../../vendor/phpexiftool/exiftool/');
        foreach ($reader as $file) {
            $this->assertEquals(basename($file->getFile()), $file->getMetadatas()->get('System:FileName')->getValue()->asString());
        }
    }