/** * @covers WindowsAzure\Table\Models\BatchOperationType::isValid */ public function testIsValidWithInvalid() { // Setup $name = 'zeta el senen'; // Test $actual = BatchOperationType::isValid($name); // Assert $this->assertFalse($actual); }
/** * Sets operation type. * * @param string $type The operation type. Must be valid type. * * @return none */ public function setType($type) { Validate::isTrue(BatchOperationType::isValid($type), Resources::INVALID_BO_TYPE_MSG); $this->_type = $type; }