Carew\Tests\Event\Listener\Metadata\ExtractionTest::testOnDocumentWithPermalink PHP Method

    public function testOnDocumentWithPermalink($expected, $file)
    {
        $document = $this->createDocument($file);
        $event = new CarewEvent($document);
        $extraction = new Extraction();
        $extraction->onDocument($event);
        $this->assertSame($expected, $document->getPath());
    }