From c007567c79d697fce781386f98def3ae10bae07d Mon Sep 17 00:00:00 2001 From: Romain Neutron Date: Thu, 18 Apr 2013 17:12:56 +0200 Subject: [PATCH] Add unit tests fir setup requirements --- .../Requirements/BinariesRequirementsTest.php | 13 +++ .../CacheServerRequirementTest.php | 13 +++ .../FilesystemRequirementsTest.php | 13 +++ .../Requirements/LocalesRequirementsTest.php | 13 +++ .../OpcodeCacheRequirementTest.php | 13 +++ .../Requirements/PhpRequirementsTest.php | 13 +++ .../Requirements/PhraseaRequirementsTest.php | 13 +++ .../Requirements/RequirementsTestCase.php | 93 +++++++++++++++++++ .../Requirements/SystemRequirementsTest.php | 13 +++ 9 files changed, 197 insertions(+) create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/BinariesRequirementsTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/CacheServerRequirementTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/FilesystemRequirementsTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/LocalesRequirementsTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/OpcodeCacheRequirementTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/PhpRequirementsTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/PhraseaRequirementsTest.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/RequirementsTestCase.php create mode 100644 tests/Alchemy/Tests/Phrasea/Setup/Requirements/SystemRequirementsTest.php diff --git a/tests/Alchemy/Tests/Phrasea/Setup/Requirements/BinariesRequirementsTest.php b/tests/Alchemy/Tests/Phrasea/Setup/Requirements/BinariesRequirementsTest.php new file mode 100644 index 0000000000..785ef336ba --- /dev/null +++ b/tests/Alchemy/Tests/Phrasea/Setup/Requirements/BinariesRequirementsTest.php @@ -0,0 +1,13 @@ +assertInstanceOf('Alchemy\Phrasea\Setup\System\RequirementCollectionInterface', $this->provideRequirements()); + } + + public function testAdd() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testAddCollection() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testAddPhpIniRecommendation() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testAddPhpIniRequirement() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testAddRecommendation() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testAddRequirement() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testAll() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetFailedRecommendations() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetFailedRequirements() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetInformations() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetName() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetPhpIniConfigPath() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetRecommendations() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testGetRequirements() + { + $this->markTestIncomplete('Incomplete'); + } + + public function testHasPhpIniConfigIssue() + { + $this->markTestIncomplete('Incomplete'); + } +} diff --git a/tests/Alchemy/Tests/Phrasea/Setup/Requirements/SystemRequirementsTest.php b/tests/Alchemy/Tests/Phrasea/Setup/Requirements/SystemRequirementsTest.php new file mode 100644 index 0000000000..3d26620bc8 --- /dev/null +++ b/tests/Alchemy/Tests/Phrasea/Setup/Requirements/SystemRequirementsTest.php @@ -0,0 +1,13 @@ +