re-trying unit tests!

This commit is contained in:
Ben Harris 2016-07-01 01:59:07 -04:00
parent 717433a4d7
commit 778734c5cc
4 changed files with 1496 additions and 40 deletions

View File

@ -6,11 +6,15 @@
"mnapoli/front-yaml": "^1.5"
},
"require-dev": {
"heroku/heroku-buildpack-php": "*"
"heroku/heroku-buildpack-php": "*",
"phpunit/phpunit": "^5.4",
"symfony/browser-kit": "^3.1",
"symfony/css-selector": "^3.1"
},
"autoload": {
"psr-4": {
"benharri\\": "app\\"
"benharri\\": "app\\",
"benharri\\tests\\": "tests\\"
}
}
}

1489
composer.lock generated

File diff suppressed because it is too large Load Diff

17
phpunit.xml.dist Normal file
View File

@ -0,0 +1,17 @@
<?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"
>
<testsuites>
<testsuite name="YourApp Test Suite">
<directory>./tests/</directory>
</testsuite>
</testsuites>
</phpunit>

22
tests/AppTest.php Normal file
View File

@ -0,0 +1,22 @@
<?php
namespace benharri\tests;
use Silex\WebTestCase;
class YourTest extends WebTestCase
{
public function createApplication()
{
$app = require __DIR__.'/../app/app.php';
$app['debug'] = true;
unset($app['exception_handler']);
return $app;
}
public function testFooBar()
{
$this->assertTrue(true);
}
}