Exemplo n.º 1
0
 function testReturnValues()
 {
     $entry = new PelEntryUndefined(42);
     $entry = new PelEntryUndefined(42, 'foo bar baz');
     $this->assertEquals($entry->getComponents(), 11);
     $this->assertEquals($entry->getValue(), 'foo bar baz');
 }
Exemplo n.º 2
0
 function testReturnValues()
 {
     $pattern = new PatternExpectation('/Missing argument 1 for lsolesen.pel.PelEntryUndefined::__construct()/');
     $this->expectError($pattern);
     $pattern = new PatternExpectation('/Undefined variable: tag/');
     $this->expectError($pattern);
     $entry = new PelEntryUndefined();
     $entry = new PelEntryUndefined(42);
     $entry = new PelEntryUndefined(42, 'foo bar baz');
     $this->assertEqual($entry->getComponents(), 11);
     $this->assertEqual($entry->getValue(), 'foo bar baz');
 }