Ejemplo n.º 1
0
 public function testShouldUseGeneratorToCreateMutablesAndStoreAllForRetrievalUsingGetMutablesMethod()
 {
     $runner = new Base();
     $generator = $this->getMock('\\Mutagenesis\\Generator');
     $generator->expects($this->once())->method('generate');
     $generator->expects($this->once())->method('getMutables')->will($this->returnValue(array('mut1', 'mut2')));
     $runner->setGenerator($generator);
     $this->assertEquals(array('mut1', 'mut2'), $runner->getMutables());
 }