Skip to content

Commit cff6b50

Browse files
committed
Merge pull request #120 from symfony-cmf/styleci
Introduced Style CI
2 parents 88cb3e7 + 22c8688 commit cff6b50

24 files changed

+148
-55
lines changed

.styleci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
preset: symfony

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Symfony CMF Testing Component
22

33
[![Build Status](https://travis-ci.org/symfony-cmf/Testing.png?branch=master)](https://travis-ci.org/symfony-cmf/Testing)
4+
[![StyleCI](https://styleci.io/repos/9807986/shield)](https://styleci.io/repos/9807986)
45

56
**NOTE**: This is an internal tool and is not intended to be used outside of
67
the context of the CMF.

bootstrap/bootstrap.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
$vendorDir = realpath(__DIR__.'/../../..');
413

514
if (!$loader = include $vendorDir.'/autoload.php') {
@@ -13,7 +22,7 @@
1322

1423
use Doctrine\Common\Annotations\AnnotationRegistry;
1524

16-
AnnotationRegistry::registerLoader(function($class) use ($loader) {
25+
AnnotationRegistry::registerLoader(function ($class) use ($loader) {
1726
$loader->loadClass($class);
1827

1928
// this was class_exists($class, false) i.e. do not autoload.

bootstrap/kernel_bootstrap.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
$rootDir = realpath(__DIR__.'/../../../..');
413
$phpUnitFile = $rootDir.'/phpunit.xml.dist';
514

resources/config/default.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
413

514
$kernelRootDir = $container->getParameter('kernel.root_dir');

resources/config/dist/framework.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
@trigger_error('The resources/config/dist/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
413

514
$config = array(

resources/config/dist/phpcr_odm.php

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,19 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
@trigger_error('The resources/config/dist/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
413

514
$config = array(
615
'session' => array(
7-
'backend' => '%phpcr_backend%',
16+
'backend' => '%phpcr_backend%',
817
'workspace' => '%phpcr_workspace%',
918
'username' => '%phpcr_user%',
1019
'password' => '%phpcr_pass%',
@@ -34,7 +43,6 @@
3443
$phpcrOdmDocPrefix = sprintf('%s\Tests\Resources\Document', $bundleFQN);
3544

3645
if (file_exists($phpcrOdmDocDir)) {
37-
3846
$config['odm']['mappings']['test_additional'] = array(
3947
'type' => 'annotation',
4048
'prefix' => $phpcrOdmDocPrefix,

resources/config/doctrine_orm.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
413

514
$loader->import(CMF_TEST_CONFIG_DIR.'/dist/doctrine_orm.yml');

resources/config/phpcr_odm.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
413

514
$loader->import(CMF_TEST_CONFIG_DIR.'/dist/phpcr_odm.php');

resources/config/sonata_admin.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
<?php
22

3+
/*
4+
* This file is part of the Symfony CMF package.
5+
*
6+
* (c) 2011-2015 Symfony CMF
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
312
@trigger_error('The resources/config/'.basename(__FILE__).' file is deprecated since version 1.3 and will be removed in 2.0. Include the config file in your own library instead.');
413

514
$loader->import(CMF_TEST_CONFIG_DIR.'/dist/sonata_admin.yml');

0 commit comments

Comments
 (0)