| 1 | <?php |
||
| 11 | class ParserFactorySpec extends ObjectBehavior |
||
| 12 | { |
||
| 13 | function it_is_initializable() |
||
| 14 | { |
||
| 15 | $this->shouldHaveType(ParserFactory::CLASS); |
||
| 16 | } |
||
| 17 | |||
| 18 | function it_creates_parsers() |
||
| 19 | { |
||
| 20 | $this->createParser()->shouldHaveType(Parser::CLASS); |
||
| 21 | } |
||
| 22 | |||
| 23 | function it_creates_parses_with_no_external_processors() |
||
| 24 | { |
||
| 25 | $this->createParser(ParserFactory::NO_EXTERNAL_PROCESSORS)->shouldHaveType(Parser::CLASS); |
||
| 26 | } |
||
| 27 | } |
||
| 28 |