Skip to content
Snippets Groups Projects
Commit 8b0fc78b authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Config pour tests unitaires.

parent 102978e6
No related branches found
No related tags found
No related merge requests found
Pipeline #3578 failed
......@@ -22,5 +22,18 @@
"post-install-cmd": [
"mkdir -p data/DoctrineORMModule/Proxy ; chmod -R 777 data/DoctrineORMModule/Proxy"
]
},
"autoload": {
"psr-4": {
"Application\\": "module/Application/src"
},
"files": [
"module/Application/Module.php"
]
},
"autoload-dev": {
"psr-4": {
"ApplicationTest\\": "module/Application/test"
}
}
}
\ No newline at end of file
<?php
namespace ApplicationTest;
use Application\Module;
class ModuleTest extends \PHPUnit_Framework_TestCase
{
/**
* @var Module
*/
private $module;
protected function setUp()
{
$this->module = new Module();
}
public function testCanGetArrayConfig()
{
$this->assertInternalType('array', $this->module->getConfig());
}
}
<?xml version="1.0" encoding="UTF-8"?>
<phpunit bootstrap="vendor/autoload.php" colors="true">
<testsuites>
<testsuite name="Application">
<directory>module/Application/test</directory>
</testsuite>
</testsuites>
</phpunit>
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment