/**
  * @covers \Tests\Stub\ActionStub
  */
 public function testCallingManipulateSetsCalledToTrue()
 {
     ActionStub::$called = false;
     $stub = new ActionStub();
     $container = new TokenContainer();
     $this->assertFalse(ActionStub::$called);
     $stub->run($container);
     $this->assertTrue(ActionStub::$called);
 }
Beispiel #2
0
 /**
  * @covers \PHP\Manipulator\Action::hasOption
  */
 public function testHasOption()
 {
     $abstractHelper = new ActionStub(array('foo' => 'bla'));
     $this->assertTrue($abstractHelper->hasOption('foo'));
     $this->assertFalse($abstractHelper->hasOption('blub'));
 }