-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# This is a combination of 5 commits.
# The first commit's message is: Update PHPUnit testing, using @Covers now. # This is the 2nd commit message: Update PHPUnit testing, using @Covers now. # This is the 3rd commit message: Fixed typo. # This is the 4th commit message: Fixed typo. # This is the 5th commit message: Update PHPUnit testing, using @Covers now.
- Loading branch information
Showing
12 changed files
with
196 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
<?php | ||
|
||
/* | ||
* This file is part of the h4cc/AliceFixtureBundle package. | ||
* | ||
* (c) Julius Beckmann <github@h4cc.de> | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
*/ | ||
|
||
namespace h4cc\AliceFixturesBundle\Tests\DependencyInjection; | ||
|
||
use h4cc\AliceFixturesBundle\DependencyInjection\Configuration; | ||
use Matthias\SymfonyConfigTest\PhpUnit\AbstractConfigurationTestCase; | ||
|
||
/** | ||
* Class ConfiguratonTest | ||
* | ||
* @author Julius Beckmann <github@h4cc.de> | ||
* @covers h4cc\AliceFixturesBundle\DependencyInjection\Configuration | ||
*/ | ||
class ConfigurationTest extends AbstractConfigurationTestCase | ||
{ | ||
protected function getConfiguration() | ||
{ | ||
return new Configuration(); | ||
} | ||
|
||
public function testDefaultConfiguration() | ||
{ | ||
$this->assertProcessedConfigurationEquals( | ||
// Input | ||
array(), | ||
// Expected output | ||
array( | ||
'managers' => array(), | ||
) | ||
); | ||
} | ||
|
||
public function testSimpleConfiguration() | ||
{ | ||
$this->assertProcessedConfigurationEquals( | ||
// Input | ||
array(array( | ||
'locale' => 'de_DE', | ||
'seed' => 9876, | ||
'do_flush' => false, | ||
|
||
'object_manager' => 'doctrine_object_manager', | ||
'schema_tool' => 'doctrine_schema_tool', | ||
|
||
'doctrine' => 'mongodb-odm', | ||
|
||
'default_manager' => 'default', | ||
)), | ||
// Expected output | ||
array( | ||
'default_manager' => 'default', | ||
'managers' => array( | ||
'default' => array( | ||
'locale' => 'de_DE', | ||
'seed' => 9876, | ||
'do_flush' => false, | ||
|
||
'object_manager' => 'doctrine_object_manager', | ||
'schema_tool' => 'doctrine_schema_tool', | ||
|
||
'doctrine' => 'mongodb-odm', | ||
) | ||
), | ||
) | ||
); | ||
} | ||
|
||
public function testMultiManagerConfiguration() | ||
{ | ||
$this->assertProcessedConfigurationEquals( | ||
// Input | ||
array(array( | ||
'default_manager' => 'my_manager', | ||
'managers' => array( | ||
'my_manager' => array( | ||
'locale' => 'de_DE', | ||
'seed' => 9876, | ||
'do_flush' => false, | ||
|
||
'object_manager' => 'doctrine_object_manager', | ||
'schema_tool' => 'doctrine_schema_tool', | ||
|
||
'doctrine' => 'mongodb-odm', | ||
) | ||
) | ||
)), | ||
// Expected output | ||
array( | ||
'default_manager' => 'my_manager', | ||
'managers' => array( | ||
'my_manager' => array( | ||
'locale' => 'de_DE', | ||
'seed' => 9876, | ||
'do_flush' => false, | ||
|
||
'object_manager' => 'doctrine_object_manager', | ||
'schema_tool' => 'doctrine_schema_tool', | ||
|
||
'doctrine' => 'mongodb-odm', | ||
) | ||
), | ||
) | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters