/** * @covers ::__construct * @group Container */ public function testConstruct() { $data = ['email' => '*****@*****.**', 'name' => 'test']; $container = new Validation($this->validator, $data, true); $this->assertEquals($data, $container->getContents()); $this->assertTrue($container->isReadOnly()); }