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