示例#1
0
 public function testReadSame()
 {
     $expected = new \stdClass();
     $expected->prop = 'value';
     $this->context->expects($this->once())->method('getOption')->with($this->equalTo('entity'))->will($this->returnValue($expected));
     $this->reader->setContextKey('entity');
     $this->reader->setStepExecution($this->stepExecution);
     $this->assertEquals($expected, $this->reader->read());
     $this->assertNull($this->reader->read());
 }