mirror of
https://github.com/php/web-pecl.git
synced 2026-03-24 15:22:16 +01:00
38 lines
1.5 KiB
PHP
38 lines
1.5 KiB
PHP
<?php
|
|
|
|
/*
|
|
+----------------------------------------------------------------------+
|
|
| The PECL website |
|
|
+----------------------------------------------------------------------+
|
|
| Copyright (c) 1999-2019 The PHP Group |
|
|
+----------------------------------------------------------------------+
|
|
| This source file is subject to version 3.01 of the PHP license, |
|
|
| that is bundled with this package in the file LICENSE, and is |
|
|
| available through the world-wide-web at the following url: |
|
|
| https://php.net/license/3_01.txt |
|
|
| If you did not receive a copy of the PHP license and are unable to |
|
|
| obtain it through the world-wide-web, please send a note to |
|
|
| license@php.net so we can mail you a copy immediately. |
|
|
+----------------------------------------------------------------------+
|
|
| Authors: Peter Kokot <petk@php.net> |
|
|
+----------------------------------------------------------------------+
|
|
*/
|
|
|
|
namespace App\Tests\Utils;
|
|
|
|
use PHPUnit\Framework\TestCase;
|
|
use App\Utils\Extractor;
|
|
|
|
class ExtractorTest extends TestCase
|
|
{
|
|
public function testGetFileContents()
|
|
{
|
|
$extractor = new Extractor(__DIR__.'/../fixtures/files/hello.tgz');
|
|
|
|
$this->assertEquals(
|
|
file_get_contents(__DIR__.'/../fixtures/files/hello/config.m4'),
|
|
$extractor->getFileContents('hello/config.m4')
|
|
);
|
|
}
|
|
}
|