| 1 | <?php |
||
| 9 | class PubSubTest extends PHPUnit_Framework_TestCase |
||
| 10 | { |
||
| 11 | private $container; |
||
| 12 | private $topic; |
||
| 13 | |||
| 14 | public function setup() |
||
| 15 | { |
||
| 16 | $root = __DIR__.'/../public'; |
||
| 17 | $config = new Config($root); |
||
| 18 | $config->cacheSet(); |
||
| 19 | $this->container = Container::instance($root, $config, $root.'/../config/containers/test-container.yml'); |
||
| 20 | $model = $this->container->get('pubSubModel'); |
||
| 21 | $model->build(); |
||
| 22 | $this->topic = $this->container->get('topic'); |
||
| 23 | $cache = $model->readDiskCache(); |
||
| 24 | $this->topic->cacheSet($cache); |
||
| 25 | } |
||
| 26 | |||
| 27 | public function testTopic() |
||
| 33 | |||
| 34 | public function testSubscribe() |
||
| 41 | } |
||
| 42 |