This commit is contained in:
Nicolas Lœuillet 2015-01-19 11:59:22 +01:00
parent e342acf7ba
commit f3052b4542
6 changed files with 474 additions and 795 deletions

1
bin/phpunit Symbolic link
View file

@ -0,0 +1 @@
../vendor/phpunit/phpunit/composer/bin/phpunit

4
bin/test Normal file → Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
set -e
./bin/phpunit

View file

@ -45,7 +45,12 @@
"mgargano/simplehtmldom": "dev-master", "mgargano/simplehtmldom": "dev-master",
"wallabag/PHP-Flash-Messages": "dev-master", "wallabag/PHP-Flash-Messages": "dev-master",
"wallabag/kriss_php5": "dev-master", "wallabag/kriss_php5": "dev-master",
"wallabag/pagination": "dev-master", "wallabag/pagination": "dev-master"
"phpunit/phpunit": "4.4.*" },
"require-dev": {
"phpunit/phpunit": "~3.7"
},
"config": {
"bin-dir": "bin"
} }
} }

1209
composer.lock generated

File diff suppressed because it is too large Load diff

27
phpunit.xml.dist Normal file
View file

@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit backupGlobals="false"
backupStaticAttributes="false"
colors="true"
convertErrorsToExceptions="true"
convertNoticesToExceptions="true"
convertWarningsToExceptions="true"
processIsolation="false"
stopOnFailure="false"
syntaxCheck="false"
bootstrap="vendor/autoload.php"
>
<testsuites>
<testsuite name="wallabag Test Suite">
<directory>tests</directory>
</testsuite>
</testsuites>
<filter>
<whitelist>
<directory>inc</directory>
</whitelist>
</filter>
</phpunit>

View file

@ -0,0 +1,19 @@
<?php
/**
* wallabag, self hostable application allowing you to not miss any content anymore
*
* @category wallabag
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
* @copyright 2013
* @license http://opensource.org/licenses/MIT see COPYING file
*/
namespace wallabag\wallabag\Tests;
class EntryTest extends \PHPUnit_Framework_TestCase
{
public function testFoo()
{
$this->assertTrue(true);
}
}