public function testConvert() { $implementation = $this->getImplementationMock(); $elementsTypeOutline = new BooleanOutline(); $this->schemaLinker->expects($this->once())->method('generateType')->with($this->equalTo($elementsTypeOutline), $this->equalTo($implementation))->will($this->returnValue(new BooleanType())); $typeOutline = new CollectionOutline('collection<boolean>', $elementsTypeOutline); $this->assertTrue($this->object->isAbleToGenerate($typeOutline)); $this->assertInstanceOf('Wookieb\\ZorroDataSchema\\Schema\\Type\\CollectionType', $this->object->generate($typeOutline, $implementation)); }