public function testShouldHaveAllColumnAttributesWhenInitializingWithArray() { $author = new Author(array('name' => 'Tito')); $this->assertTrue(count(array_keys($author->attributes())) >= 9); }
public function test_should_have_all_column_attributes_when_initializing_with_array() { $author = new Author(array('name' => 'Tito')); $this->assert_true(count(array_keys($author->attributes())) >= 9); }
/** @test **/ public function it_can_mass_assign_the_values_on_init() { $attributes = ['first_name' => 'Burton', 'last_name' => 'Guster']; $author = new Author($attributes); $this->assertEquals($attributes, $author->attributes()); }