re-trying unit tests!
This commit is contained in:
parent
717433a4d7
commit
778734c5cc
|
@ -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\\"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -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>
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue