From 87cff789b6d847e6fcccad7c2fec37d03e0e9a65 Mon Sep 17 00:00:00 2001 From: Shane Auckland Date: Fri, 26 Jun 2015 13:58:01 +0100 Subject: [PATCH] Delete unused container aware files --- .../MyModule/controllers/IndexController.php | 39 ---------- .../ContainerAwareSpecification.php | 60 ---------------- .../ControllerSpecification.php | 71 ------------------- 3 files changed, 170 deletions(-) delete mode 100644 example/spec/local/MyVendor/MyModule/controllers/IndexController.php delete mode 100644 src/MageTest/PhpSpec/MagentoExtension/ContainerAwareSpecification.php delete mode 100644 src/MageTest/PhpSpec/MagentoExtension/ControllerSpecification.php diff --git a/example/spec/local/MyVendor/MyModule/controllers/IndexController.php b/example/spec/local/MyVendor/MyModule/controllers/IndexController.php deleted file mode 100644 index cbc371e..0000000 --- a/example/spec/local/MyVendor/MyModule/controllers/IndexController.php +++ /dev/null @@ -1,39 +0,0 @@ - so we can send you a copy immediately. - * - * @category MageTest - * @package example - * @subpackege spec - * - * @copyright Copyright (c) 2012-2013 MageTest team and contributors. - */ -namespace spec\local\MyVendor\MyModule\controllers; - -use PhpSpec\Magento\ControllerSpecification; - -/** - * IndexController - * - * @category MageTest - * @package example - * @subpackege spec - * - * @author MageTest team (https://github.com/MageTest/MageSpec/contributors) - */ -class IndexController extends ControllerSpecification -{ - -} \ No newline at end of file diff --git a/src/MageTest/PhpSpec/MagentoExtension/ContainerAwareSpecification.php b/src/MageTest/PhpSpec/MagentoExtension/ContainerAwareSpecification.php deleted file mode 100644 index 8187589..0000000 --- a/src/MageTest/PhpSpec/MagentoExtension/ContainerAwareSpecification.php +++ /dev/null @@ -1,60 +0,0 @@ - so we can send you a copy immediately. - * - * @category MageTest - * @package PhpSpec_MagentoExtension - * - * @copyright Copyright (c) 2012-2013 MageTest team and contributors. - */ -namespace MageTest\PhpSpec\MagentoExtension; - -use Symfony\Component\DependencyInjection\ContainerBuilder; -use Symfony\Component\DependencyInjection\Loader\XmlFileLoader; -use Symfony\Component\Config\FileLocator; - -/** - * ContainerAwareSpecification - * - * @category MageTest - * @package PhpSpec_MagentoExtension - * - * @author MageTest team (https://github.com/MageTest/MageSpec/contributors) - */ -class ContainerAwareSpecification -{ - public function __construct() - { - $this->init(); - } - - public function get($service) - { - return $this->container->get($service); - } - - public function init() - { - $this->container = new ContainerBuilder; - $loader = new XmlFileLoader( - $this->container, - new FileLocator( - __DIR__ . DIRECTORY_SEPARATOR . 'Container' - ) - ); - - $loader->load('services.xml'); - } -} \ No newline at end of file diff --git a/src/MageTest/PhpSpec/MagentoExtension/ControllerSpecification.php b/src/MageTest/PhpSpec/MagentoExtension/ControllerSpecification.php deleted file mode 100644 index 359024a..0000000 --- a/src/MageTest/PhpSpec/MagentoExtension/ControllerSpecification.php +++ /dev/null @@ -1,71 +0,0 @@ - so we can send you a copy immediately. - * - * @category MageTest - * @package PhpSpec_MagentoExtension - * - * @copyright Copyright (c) 2012-2013 MageTest team and contributors. - */ -namespace MageTest\PhpSpec\MagentoExtension; - -use PhpSpec\SpecificationInterface; -use PhpSpec\Prophet\ProphetInterface; - -//require_once __DIR__ . DIRECTORY_SEPARATOR . "SpecHelper.php"; - -/** - * ControllerSpecification - * - * @category MageTest - * @package PhpSpec_MagentoExtension - * - * @author MageTest team (https://github.com/MageTest/MageSpec/contributors) - */ -class ControllerSpecification extends ContainerAwareSpecification implements SpecificationInterface -{ - protected $controller; - - // public function __call($method, $args) - // { - // if ($this->isAction($method)) { - // $this->_dispatch($method); - // } - // } - - // public function __get($attribute) - // { - // if ($attribute === $this->className) { - // //$this->$attribute = $this->createProphet($this->$attribute); - // } - // } - - - - public function setProphet(ProphetInterface $prophet) - { - $this->controller = $prophet; - } - // - // private function _dispatch($action) - // { - // - // } - // - // private function isAction($method) - // { - // - // } -} \ No newline at end of file