Esempio n. 1
0
 public function testShouldAcceptInstanceOfValidatobleOnConstructor()
 {
     $validatable = $this->getMock('Respect\\Validation\\Validatable');
     $rule = new Optional($validatable);
     $this->assertSame($validatable, $rule->getValidatable());
 }
Esempio n. 2
0
 public function testShouldAcceptInstanceOfValidatobleOnConstructor()
 {
     $validatable = $this->createMock(Validatable::class);
     $rule = new Optional($validatable);
     $this->assertSame($validatable, $rule->getValidatable());
 }