Ejemplo n.º 1
0
 public function testIn()
 {
     $operation = new Operation('getEntry');
     $operation->setMethod('GET');
     $operation->setIn('void');
     $operation->setOut('collection');
     $this->assertEquals('getEntry', $operation->getName());
     $this->assertEquals('GET', $operation->getMethod());
     $this->assertEquals('void', $operation->getIn());
     $this->assertTrue($operation->hasIn());
     $this->assertEquals('collection', $operation->getOut());
     $this->assertTrue($operation->hasOut());
     $this->assertTrue($operation->hasOperation());
     $this->assertFalse($operation->isInOnly());
     $this->assertFalse($operation->isOutOnly());
     $this->assertTrue($operation->isInOut());
 }