From c6f51359f18464f8d5eb9784fd4de84527a1c654 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20Hochd=C3=B6rfer?= Date: Fri, 4 Dec 2015 17:47:21 +0100 Subject: [PATCH] Ported bitExpert internal Phing setup over to the disco package. --- .travis.yml | 5 +-- build.xml | 33 +++++++++++++++++++ .../Disco/AnnotationBeanFactoryUnitTest.php | 18 ++++++---- 3 files changed, 48 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 4f1cf30..d6b6b88 100644 --- a/.travis.yml +++ b/.travis.yml @@ -16,5 +16,6 @@ before_script: script: - composer validate - ./vendor/bin/phing security:check - - ./vendor/bin/phpunit - - ./vendor/bin/phpcs --standard=PSR2 src + - ./vendor/bin/phing sniff + - ./vendor/bin/phing unit + diff --git a/build.xml b/build.xml index e15178f..692aa62 100644 --- a/build.xml +++ b/build.xml @@ -1,4 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/bitExpert/Disco/AnnotationBeanFactoryUnitTest.php b/tests/bitExpert/Disco/AnnotationBeanFactoryUnitTest.php index e57f804..fd026c9 100644 --- a/tests/bitExpert/Disco/AnnotationBeanFactoryUnitTest.php +++ b/tests/bitExpert/Disco/AnnotationBeanFactoryUnitTest.php @@ -224,7 +224,10 @@ public function postProcessorHookRunsAfterLazyBeanCreation() */ public function parameterPassedToBeanFactoryGetsInjectedInBean() { - $this->beanFactory = new AnnotationBeanFactory(BeanConfigurationWithParameters::class, ['test' => 'injectedValue']); + $this->beanFactory = new AnnotationBeanFactory( + BeanConfigurationWithParameters::class, + ['test' => 'injectedValue'] + ); BeanFactoryRegistry::register($this->beanFactory); $bean = $this->beanFactory->get('sampleServiceWithParam'); @@ -236,13 +239,16 @@ public function parameterPassedToBeanFactoryGetsInjectedInBean() */ public function nestedParameterKeyPassedToBeanFactoryGetsInjectedInBean() { - $this->beanFactory = new AnnotationBeanFactory(BeanConfigurationWithParameters::class, [ - 'test' => [ - 'nested' => [ - 'key' => 'injectedValue' + $this->beanFactory = new AnnotationBeanFactory( + BeanConfigurationWithParameters::class, + [ + 'test' => [ + 'nested' => [ + 'key' => 'injectedValue' + ] ] ] - ]); + ); BeanFactoryRegistry::register($this->beanFactory);