Skip to content

Commit

Permalink
Improve unit tests for Config and Transformer
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyhindle committed Jan 20, 2019
1 parent 4c4fb54 commit 0143a5a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tests/PrivateDump/ConfigTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public function weCanOverrideConnectionConfig()
'password' => 'expelliarmus'
]]);

$this->assertEquals('root', $this->config->get('connection.username'));
$this->assertEquals('expelliarmus', $this->config->get('connection.password'));
$this->assertEquals('localhost', $this->config->get('connection.hostname'));
}

/** @test */
Expand Down
2 changes: 1 addition & 1 deletion tests/PrivateDump/TransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public function nonFakerTransformersWork()
$this->assertRegExp('/[0-9]{13}/', $this->transformer->transform('test', 'barcodeEan13'));
$this->assertRegExp('/[0-9]{8}/', $this->transformer->transform('test', 'barcodeEan8'));
$this->assertRegExp('/[0-9]{13}/', $this->transformer->transform('test', 'isbn13'));
$this->assertRegExp('/[0-9]{10}/', $this->transformer->transform('test', 'isbn10'));
$this->assertRegExp('/[0-9A-Z]{10}/', $this->transformer->transform('test', 'isbn10'));

$this->assertEquals('TEST', $this->transformer->transform('tEsT', 'uppercase'));
$this->assertEquals('test', $this->transformer->transform('tEsT', 'lowercase'));
Expand Down

0 comments on commit 0143a5a

Please sign in to comment.