Commit 8b0fc78b authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Config pour tests unitaires.

parent 102978e6
Pipeline #3578 failed with stage
in 11 seconds
......@@ -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
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment