#!/usr/bin/env bash

set -eox pipefail

php "$BOX_BIN" compile;

php schema.phar generate-types tmp/ tests/e2e/schema.yml;

diff tests/e2e/src/AppBundle/Entity/Person.php tmp/AppBundle/Entity/Person.php;
diff tests/e2e/src/AppBundle/Entity/PostalAddress.php tmp/AppBundle/Entity/PostalAddress.php;
diff tests/e2e/src/AppBundle/Entity/Thing.php tmp/AppBundle/Entity/Thing.php;
