Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update symfony #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
{
"name": "ninoskopac/php-tika-wrapper",
"description": "This is a simple PHP Wrapper for Apache Tika (using the tika-app jar)",
"keywords" : ["tika", "apache tika", "pdf", "doc", "docx", "odt", "text processing"],

"require": {
"php": ">=5.3.2",
"symfony/process": "~3.2"
},

"require-dev": {
"phpunit/phpunit": "3.7.*"
},

"autoload": {
"psr-4": {
"Enzim\\Lib\\TikaWrapper\\": "src/"
}
"name": "ninoskopac/php-tika-wrapper",
"description": "This is a simple PHP Wrapper for Apache Tika (using the tika-app jar)",
"keywords": [
"tika",
"apache tika",
"pdf",
"doc",
"docx",
"odt",
"text processing"
],
"require": {
"php": "^7.2",
"symfony/process": "^4.3"
},
"require-dev": {
"phpunit/phpunit": "^8"
},
"autoload": {
"psr-4": {
"Enzim\\Lib\\TikaWrapper\\": "src/"
}
}
}
15 changes: 2 additions & 13 deletions phpunit.xml
Original file line number Diff line number Diff line change
@@ -1,19 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
bootstrap="bootstrap.php"
colors="true"
convertErrorsToExceptions="false"
convertNoticesToExceptions="false"
convertWarningsToExceptions="false"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
>
<phpunit bootstrap="./bootstrap.php" colors="true">
<testsuites>
<testsuite name="Test Suite">
<testsuite name="TestSuite">
<directory>./tests</directory>
</testsuite>

</testsuites>
</phpunit>
4 changes: 3 additions & 1 deletion tests/TikaWrapperTest.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
<?php
use Enzim\Lib\TikaWrapper\TikaWrapper;
use PHPUnit\Framework\TestCase;

class TikaWrapperTest extends PHPUnit_Framework_TestCase {
class TikaWrapperTest extends TestCase {

public function testGetWordCount() {
$sampleFile1 = test_files_path() . 'sample1.txt';
Expand Down