protected function setUp()
 {
     $this->schemaOutline = new SchemaOutline();
     $this->object = new HoistClassDynamicTypeOutline($this->schemaOutline);
     $this->schemaOutline->addTypeOutline(new StringOutline());
     $this->schemaOutline->addDynamicTypeOutline($this->object);
 }
 /**
  * @depends testAddDynamicType
  */
 public function testInvalidGenerationOfType()
 {
     $dynamicType = $this->getDynamicTypeOutlineMock('ThankfulOx');
     $this->object->addDynamicTypeOutline($dynamicType);
     $exception = new UnableToGenerateTypeOutlineException('LastingLevel');
     $dynamicType->expects($this->once())->method('generate')->with('ThankfulOx')->will($this->throwException($exception));
     $msg = 'Type outline "ThankfulOx" not found';
     $this->setExpectedException('Wookieb\\ZorroDataSchema\\Exception\\TypeOutlineNotFoundException', $msg);
     try {
         $this->object->getTypeOutline('ThankfulOx');
     } catch (TypeOutlineNotFoundException $e) {
         $this->assertEquals($exception, $e->getPrevious());
         throw $e;
     }
 }