public function testEvaluate() { $c = new SchemaCollection(['\\TestApp\\Model\\UserSchema', '\\TestApp\\Model\\IDNumberSchema', '\\TestApp\\Model\\NameSchema', '\\AuthorBooks\\Model\\AddressSchema', '\\AuthorBooks\\Model\\BookSchema', '\\AuthorBooks\\Model\\AuthorSchema', '\\AuthorBooks\\Model\\AuthorBookSchema', '\\AuthorBooks\\Model\\PublisherSchema']); foreach ($c->getSchemas() as $s) { $this->assertInternalType('string', $s); } $ec = $c->evaluate(); foreach ($ec->getSchemas() as $s) { $this->assertInstanceOf('LazyRecord\\Schema\\DeclareSchema', $s); } }