...
 
Commits (8)
language: php
php:
- '7.0'
- '7.1'
- '7.2'
- '7.3'
......@@ -16,4 +14,5 @@ script:
- composer update ; phpunit --bootstrap vendor/autoload.php --coverage-clover build/logs/clover.xml test
after_success:
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "coveralls..."; php vendor/bin/coveralls -v; fi;'
\ No newline at end of file
- ls vendor/bin
- sh -c 'if [ "$TRAVIS_PHP_VERSION" != "hhvm" ]; then echo "coveralls..."; php vendor/bin/php-coveralls ; fi;'
\ No newline at end of file
......@@ -18,6 +18,13 @@ for database access.
CoConAT PHP ist available through [Packagist](https://packagist.org/packages/coconat/coconat-php).
## Feedback
Please use the [issue reporting facility at github](https://github.com/mgoellnitz/coconat.php/issues)
to get in touch.
## Building
Prerequisites are composer and phpunit.
......@@ -38,12 +45,8 @@ This unittest uses an sqlite3 database which can be create from the source with
sqlite3 test/unittest.sqlite3 < test/unittest.sql
```
## Usage example
A ReadContent.php example is included in the example directory which relies on
the same MySQL menusite database to exist as its Java counter part.
## Issue Reporting
Please use the [issue reporting facility at github](https://github.com/mgoellnitz/coconat.php/issues)
to get in touch.
......@@ -18,12 +18,12 @@
"content"
],
"require": {
"php": ">=7.0",
"php": ">=7.2",
"lf4php/lf4php": ">=4.2.0",
"lf4php/lf4php-log4php": ">=2.1.0"
},
"require-dev": {
"phpunit/phpunit": ">=5.1.3",
"phpunit/phpunit": ">=6.5.5",
"phing/phing": "2.*"
},
"autoload": {
......
......@@ -2,7 +2,7 @@
/*
*
* Copyright 2015-2016 Martin Goellnitz
* Copyright 2015-2019 Martin Goellnitz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
......@@ -23,7 +23,7 @@ namespace coconat\internal\test;
use lf4php\LoggerFactory;
use coconat\internal\CoconatContentRepository;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
/**
* Small test of repository access.
......@@ -31,7 +31,7 @@ use PHPUnit_Framework_TestCase;
* This test uses a sqlite database not supported by the original system.
* It is derived from the hsqldb used in the Java flavour ov this library.
*/
class CoconatRepositoryTest extends PHPUnit_Framework_TestCase {
class CoconatRepositoryTest extends TestCase {
public function testRepository() {
$repository = new CoconatContentRepository('sqlite:test/unittest.sqlite3', '', '');
......
......@@ -2,7 +2,7 @@
/*
*
* Copyright 2015 Martin Goellnitz
* Copyright 2015-2019 Martin Goellnitz
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
......@@ -22,14 +22,14 @@
namespace coconat\internal\test;
use coconat\internal\CoconatTextConverter;
use PHPUnit_Framework_TestCase;
use PHPUnit\Framework\TestCase;
/**
* Small test of the text converter.
*
* Using a simple text and data segment to obtain the compound result.
*/
class CoconatTextConverterTest extends PHPUnit_Framework_TestCase {
class CoconatTextConverterTest extends TestCase {
public function testConverter() {
$text = "Enjoy the taste of a duck cutlet combined with caramelized onions. A dream!";
......