예제 #1
0
 public function testCanAddOperations()
 {
     $s = new ServiceDescription(array());
     $this->assertFalse($s->hasOperation('Foo'));
     $s->addOperation(new Operation(array('name' => 'Foo')));
     $this->assertTrue($s->hasOperation('Foo'));
 }