Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lib
unicaen
skeleton-application
Commits
8b0fc78b
Commit
8b0fc78b
authored
Feb 09, 2019
by
Bertrand Gauthier
Browse files
Config pour tests unitaires.
parent
102978e6
Pipeline
#3578
failed with stage
in 11 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
composer.json
View file @
8b0fc78b
...
...
@@ -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
module/Application/test/ApplicationTest/ModuleTest.php
0 → 100644
View file @
8b0fc78b
<?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
());
}
}
phpunit.xml
0 → 100644
View file @
8b0fc78b
<?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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment