Esempio n. 1
0
 public function testFindButton()
 {
     $this->mockNamedFinder('//button', array('button1', 'button2', 'button3'), array('button', 'some button'));
     $this->assertEquals('button1', $this->document->findButton('some button'));
     $this->assertEquals(null, $this->document->findButton('some button'));
 }