test/snac/server/validation/ValidationEngineTest.php
/**
     * Test adding junk as a validator
     */
Test adding junk as a validator
Test adding junk as a validator
public function testAddBadValidators() {
        $ve = new ValidationEngine();
        $this->assertFalse($ve->addValidator("String"), "Could add a string as validator");
        $this->assertFalse($ve->addValidator(new \snac\data\Constellation()), "Could add a Constellation as validator");
    }
public function testAddBadValidators ( ) { $ ve = new ValidationEngine ( ) ; $ this -> assertFalse ( $ ve -> addValidator ( " String " ) , " Could add a string as validator " ) ; $ this -> assertFalse ( $ ve -> addValidator ( new \ snac \ data \ Constellation ( ) ) , " Could add a Constellation as validator " ) ; }
Test adding junk as a validator
Test adding junk as a validator