public function test_it_checks_validity() { $this->validator->isValid()->shouldBeCalled()->willReturn(true); $this->schema->isValid(); }