Esempio n. 1
0
 public function testFilterWithoutParameter()
 {
     $context = new SimpleFilterContext();
     $context->setData('IN1', 'testing');
     $context->setData('IN2', 'Testing');
     $filter = new FixtureFilter($context);
     $filter->process();
     $this->assertEquals('testing', $context->getData('IN1'));
     $this->assertEquals('Testing_testing', $context->getData('IN2'));
     $this->assertEquals('testing_Testing_', $context->getData('OUT'));
     // suffix is null, hence not appended
 }
Esempio n. 2
0
 /**
  * @expectedException \Actinarium\Philtre\Core\Exceptions\UnregisteredStreamException
  */
 public function testSimpleContextFailsWhenUnregisteredStreamRequested()
 {
     $context = new SimpleFilterContext();
     $context->getData(TEST);
 }